From a7e69fca894be6e31eb4bc8e52d4e329105cf0c2 Mon Sep 17 00:00:00 2001 From: Rohan Ghige Date: Sat, 14 May 2022 14:12:59 +0530 Subject: [PATCH 1/5] [FIX] Tree-sitter ensure_installed error message --- lua/user/treesitter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/user/treesitter.lua b/lua/user/treesitter.lua index 6f14cfc..adffb3f 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", -- one of "all", "maintained" (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 = { From 23c927e16df9b4c5ae0ed08899a2e87563d535ea Mon Sep 17 00:00:00 2001 From: Rohan Ghige Date: Sat, 14 May 2022 14:28:47 +0530 Subject: [PATCH 2/5] [FIX] cmp documentation error --- lua/user/cmp.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 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, From 6755f98df9b603a3323eaa76a1b7d80859868b8b Mon Sep 17 00:00:00 2001 From: Rohan Ghige Date: Sat, 14 May 2022 16:21:17 +0530 Subject: [PATCH 3/5] [FIX] nvim-tree warnings --- lua/user/nvim-tree.lua | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) 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, + }, + }, }, } From 0dbe9df71629fb06ccddb1ae7e1d27f2a4bfe02c Mon Sep 17 00:00:00 2001 From: Rohan Ghige Date: Wed, 18 May 2022 08:24:40 +0530 Subject: [PATCH 4/5] Fix warning in jsonls and whichkey --- lua/user/lsp/settings/jsonls.lua | 3 +++ lua/user/whichkey.lua | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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/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 = { From 219abb0e6866a6f33f5332cc00ff22bcef1a9a63 Mon Sep 17 00:00:00 2001 From: Rohan Ghige Date: Wed, 18 May 2022 08:29:29 +0530 Subject: [PATCH 5/5] [FIX] Tree-sitter ensure_installed comment --- lua/user/treesitter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/user/treesitter.lua b/lua/user/treesitter.lua index adffb3f..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 = "all", -- 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 = {