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 = { "LspInfo", "Info" }, I = { "LspInstallInfo", "Installer Info" }, j = { - "lua vim.lsp.diagnostic.goto_next()", + "lua vim.diagnostic.goto_next()", "Next Diagnostic", }, k = { @@ -151,7 +151,7 @@ local mappings = { "Prev Diagnostic", }, l = { "lua vim.lsp.codelens.run()", "CodeLens Action" }, - q = { "lua vim.lsp.diagnostic.set_loclist()", "Quickfix" }, + q = { "lua vim.diagnostic.setloclist()", "Quickfix" }, r = { "lua vim.lsp.buf.rename()", "Rename" }, s = { "Telescope lsp_document_symbols", "Document Symbols" }, S = {