summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/user/cmp.lua6
-rw-r--r--lua/user/lsp/settings/jsonls.lua3
-rw-r--r--lua/user/nvim-tree.lua18
-rw-r--r--lua/user/treesitter.lua2
-rw-r--r--lua/user/whichkey.lua4
5 files changed, 17 insertions, 16 deletions
diff --git a/lua/user/cmp.lua b/lua/user/cmp.lua
index a151214..df5c052 100644
--- a/lua/user/cmp.lua
+++ b/lua/user/cmp.lua
@@ -119,8 +119,10 @@ cmp.setup {
behavior = cmp.ConfirmBehavior.Replace,
select = false,
},
- documentation = {
- border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
+ window = {
+ documentation = {
+ border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
+ },
},
experimental = {
ghost_text = false,
diff --git a/lua/user/lsp/settings/jsonls.lua b/lua/user/lsp/settings/jsonls.lua
index 1fffa68..2ee88db 100644
--- a/lua/user/lsp/settings/jsonls.lua
+++ b/lua/user/lsp/settings/jsonls.lua
@@ -169,6 +169,9 @@ local schemas = {
}
local function extend(tab1, tab2)
+ if tab2 == nil then
+ return tab2
+ end
for _, value in ipairs(tab2) do
table.insert(tab1, value)
end
diff --git a/lua/user/nvim-tree.lua b/lua/user/nvim-tree.lua
index 9c5170c..a994350 100644
--- a/lua/user/nvim-tree.lua
+++ b/lua/user/nvim-tree.lua
@@ -42,7 +42,6 @@ nvim_tree.setup {
"dashboard",
"alpha",
},
- auto_close = true,
open_on_tab = false,
hijack_cursor = false,
update_cwd = true,
@@ -98,15 +97,12 @@ nvim_tree.setup {
cmd = "trash",
require_confirm = true,
},
- quit_on_open = 0,
- git_hl = 1,
- disable_window_picker = 0,
- root_folder_modifier = ":t",
- show_icons = {
- git = 1,
- folders = 1,
- files = 1,
- folder_arrows = 1,
- tree_width = 30,
+ actions = {
+ open_file = {
+ quit_on_open = false,
+ window_picker = {
+ enable = false,
+ },
+ },
},
}
diff --git a/lua/user/treesitter.lua b/lua/user/treesitter.lua
index 6f14cfc..eadd605 100644
--- a/lua/user/treesitter.lua
+++ b/lua/user/treesitter.lua
@@ -4,7 +4,7 @@ if not status_ok then
end
configs.setup {
- ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
+ ensure_installed = "all", -- "all" (parsers with maintainers), or a list of languages
sync_install = false, -- install languages synchronously (only applied to `ensure_installed`)
ignore_install = { "" }, -- List of parsers to ignore installing
autopairs = {
diff --git a/lua/user/whichkey.lua b/lua/user/whichkey.lua
index 994435f..f5520b1 100644
--- a/lua/user/whichkey.lua
+++ b/lua/user/whichkey.lua
@@ -143,7 +143,7 @@ local mappings = {
i = { "<cmd>LspInfo<cr>", "Info" },
I = { "<cmd>LspInstallInfo<cr>", "Installer Info" },
j = {
- "<cmd>lua vim.lsp.diagnostic.goto_next()<CR>",
+ "<cmd>lua vim.diagnostic.goto_next()<CR>",
"Next Diagnostic",
},
k = {
@@ -151,7 +151,7 @@ local mappings = {
"Prev Diagnostic",
},
l = { "<cmd>lua vim.lsp.codelens.run()<cr>", "CodeLens Action" },
- q = { "<cmd>lua vim.lsp.diagnostic.set_loclist()<cr>", "Quickfix" },
+ q = { "<cmd>lua vim.diagnostic.setloclist()<cr>", "Quickfix" },
r = { "<cmd>lua vim.lsp.buf.rename()<cr>", "Rename" },
s = { "<cmd>Telescope lsp_document_symbols<cr>", "Document Symbols" },
S = {