style(nvim): format with stylua
This commit is contained in:
parent
5653be9041
commit
9a9bae1333
@ -16,7 +16,6 @@ M.setup = function()
|
|||||||
command = "StripTrailSpace",
|
command = "StripTrailSpace",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
-- NOTE: Disables status column elements in Terminal buffer
|
-- NOTE: Disables status column elements in Terminal buffer
|
||||||
vim.api.nvim_create_autocmd("TermOpen", {
|
vim.api.nvim_create_autocmd("TermOpen", {
|
||||||
group = augroup,
|
group = augroup,
|
||||||
@ -26,7 +25,7 @@ M.setup = function()
|
|||||||
vim.api.nvim_set_option_value("number", false, { scope = "local" })
|
vim.api.nvim_set_option_value("number", false, { scope = "local" })
|
||||||
vim.api.nvim_set_option_value("relativenumber", false, { scope = "local" })
|
vim.api.nvim_set_option_value("relativenumber", false, { scope = "local" })
|
||||||
vim.cmd.startinsert()
|
vim.cmd.startinsert()
|
||||||
end
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -75,8 +75,7 @@ M.setup = function()
|
|||||||
end, { silent = true, desc = "Insert Literal Tab" })
|
end, { silent = true, desc = "Insert Literal Tab" })
|
||||||
|
|
||||||
-- Binding to keep S-Space in terminals from not sending <Space>
|
-- Binding to keep S-Space in terminals from not sending <Space>
|
||||||
vim.keymap.set("t", "<S-Space>", "<Space>",
|
vim.keymap.set("t", "<S-Space>", "<Space>", { silent = true, desc = "Terminal: Hack S-Space to Space" })
|
||||||
{ silent = true, desc = "Terminal: Hack S-Space to Space" })
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
@ -61,13 +61,12 @@ return {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
---@param sources table?
|
---@param sources table?
|
||||||
local standard_sources = function(sources)
|
local standard_sources = function(sources)
|
||||||
sources = sources or {}
|
sources = sources or {}
|
||||||
local default_sources = {
|
local default_sources = {
|
||||||
{ name = "nvim_lsp", priority = 11 },
|
{ name = "nvim_lsp", priority = 11 },
|
||||||
{ name = "luasnip", priority = 10 }, -- For luasnip users.
|
{ name = "luasnip", priority = 10 }, -- For luasnip users.
|
||||||
{ name = "fuzzy_buffer", priority = 9, keyword_length = 3, max_item_count = 10 },
|
{ name = "fuzzy_buffer", priority = 9, keyword_length = 3, max_item_count = 10 },
|
||||||
{
|
{
|
||||||
name = "rg",
|
name = "rg",
|
||||||
@ -76,12 +75,12 @@ return {
|
|||||||
max_item_count = 10,
|
max_item_count = 10,
|
||||||
},
|
},
|
||||||
{ name = "async_path", priority = 6 },
|
{ name = "async_path", priority = 6 },
|
||||||
{ name = "zsh", priority = 5 },
|
{ name = "zsh", priority = 5 },
|
||||||
{ name = "emoji", keyword_length = 2 },
|
{ name = "emoji", keyword_length = 2 },
|
||||||
{ name = "neorg" },
|
{ name = "neorg" },
|
||||||
{ name = "calc" },
|
{ name = "calc" },
|
||||||
{ name = "npm", keyword_length = 2 },
|
{ name = "npm", keyword_length = 2 },
|
||||||
{ name = "spell", keyword_length = 2 },
|
{ name = "spell", keyword_length = 2 },
|
||||||
}
|
}
|
||||||
|
|
||||||
return vim.tbl_deep_extend("force", default_sources, sources)
|
return vim.tbl_deep_extend("force", default_sources, sources)
|
||||||
|
@ -3,20 +3,20 @@ return {
|
|||||||
"3rd/image.nvim",
|
"3rd/image.nvim",
|
||||||
build = function()
|
build = function()
|
||||||
---@param out SystemCompleted
|
---@param out SystemCompleted
|
||||||
vim.system({"luarocks", "--lua-version", "5.1", "--local", "install", "magick"}, {}, function (out)
|
vim.system({ "luarocks", "--lua-version", "5.1", "--local", "install", "magick" }, {}, function(out)
|
||||||
if out.code ~= 0 then
|
if out.code ~= 0 then
|
||||||
error("Failed to install `magick` luarock for image.nvim!", vim.log.levels.ERROR)
|
error("Failed to install `magick` luarock for image.nvim!", vim.log.levels.ERROR)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end,
|
end,
|
||||||
ft = {"markdown", "norg"},
|
ft = { "markdown", "norg" },
|
||||||
config = function()
|
config = function()
|
||||||
package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?/init.lua;"
|
package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?/init.lua;"
|
||||||
package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?.lua;"
|
package.path = package.path .. ";" .. vim.fn.expand("$HOME") .. "/.luarocks/share/lua/5.1/?.lua;"
|
||||||
require("image").setup({
|
require("image").setup({
|
||||||
window_overlap_clear_enabled = true,
|
window_overlap_clear_enabled = true,
|
||||||
})
|
})
|
||||||
end
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-neorg/neorg",
|
"nvim-neorg/neorg",
|
||||||
@ -24,9 +24,9 @@ return {
|
|||||||
cmd = { "Neorg" },
|
cmd = { "Neorg" },
|
||||||
ft = { "norg" },
|
ft = { "norg" },
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>o", desc = "> Neorg" },
|
{ "<leader>o", desc = "> Neorg" },
|
||||||
{ "<leader>oj", ":Neorg journal custom<CR>", desc = "Neorg: Journal" },
|
{ "<leader>oj", ":Neorg journal custom<CR>", desc = "Neorg: Journal" },
|
||||||
{ "<leader>ot", ":Neorg toc<CR>", desc = "Neorg: Table of Contents" }
|
{ "<leader>ot", ":Neorg toc<CR>", desc = "Neorg: Table of Contents" },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("neorg").setup({
|
require("neorg").setup({
|
||||||
@ -34,25 +34,25 @@ return {
|
|||||||
["core.defaults"] = {},
|
["core.defaults"] = {},
|
||||||
["core.completion"] = {
|
["core.completion"] = {
|
||||||
config = {
|
config = {
|
||||||
engine = "nvim-cmp"
|
engine = "nvim-cmp",
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
["core.neorgcmd"] = {},
|
["core.neorgcmd"] = {},
|
||||||
["core.summary"] = {},
|
["core.summary"] = {},
|
||||||
["core.journal"] = {
|
["core.journal"] = {
|
||||||
config = {
|
config = {
|
||||||
stategy = "flat"
|
stategy = "flat",
|
||||||
},
|
},
|
||||||
workspace = "default"
|
workspace = "default",
|
||||||
},
|
},
|
||||||
["core.dirman"] = {
|
["core.dirman"] = {
|
||||||
config = {
|
config = {
|
||||||
default_workspace = "default",
|
default_workspace = "default",
|
||||||
workspaces = {
|
workspaces = {
|
||||||
default = "~/Notes"
|
default = "~/Notes",
|
||||||
},
|
},
|
||||||
index = "index.norg"
|
index = "index.norg",
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
["core.concealer"] = {
|
["core.concealer"] = {
|
||||||
config = {
|
config = {
|
||||||
@ -64,24 +64,24 @@ return {
|
|||||||
content_only = true,
|
content_only = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
["core.integrations.treesitter"] = {
|
["core.integrations.treesitter"] = {
|
||||||
config = {
|
config = {
|
||||||
configure_parsers = true,
|
configure_parsers = true,
|
||||||
install_parsers = true
|
install_parsers = true,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
["core.qol.todo_items"] = {
|
["core.qol.todo_items"] = {
|
||||||
config = {
|
config = {
|
||||||
create_todo_items = true,
|
create_todo_items = true,
|
||||||
create_todo_parents = true
|
create_todo_parents = true,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
["core.ui"] = {},
|
["core.ui"] = {},
|
||||||
["core.ui.calendar"] = {}
|
["core.ui.calendar"] = {},
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user