From 0d6f94cbb4086cedfb7fe7d77af51c46c93f0a6b Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Fri, 1 Mar 2024 16:32:27 +0000 Subject: [PATCH] nvim: various tweaks --- nvim/lua/thomas/plugins-setup.lua | 1 + nvim/lua/thomas/plugins/lsp/mason.lua | 2 ++ nvim/lua/thomas/plugins/treesitter.lua | 1 + 3 files changed, 4 insertions(+) diff --git a/nvim/lua/thomas/plugins-setup.lua b/nvim/lua/thomas/plugins-setup.lua index a482521..3526979 100644 --- a/nvim/lua/thomas/plugins-setup.lua +++ b/nvim/lua/thomas/plugins-setup.lua @@ -99,6 +99,7 @@ return packer.startup(function(use) use("hrsh7th/cmp-nvim-lsp") -- for autocompletion use({ "glepnir/lspsaga.nvim", branch = "main" }) + use("jackguo380/vim-lsp-cxx-highlight") use("jose-elias-alvarez/typescript.nvim") -- additional functionality for typescript server (e.g. rename file & update imports) use("onsails/lspkind.nvim") -- vs-code like icons for autocompletion diff --git a/nvim/lua/thomas/plugins/lsp/mason.lua b/nvim/lua/thomas/plugins/lsp/mason.lua index c4d8bee..d621c66 100644 --- a/nvim/lua/thomas/plugins/lsp/mason.lua +++ b/nvim/lua/thomas/plugins/lsp/mason.lua @@ -21,6 +21,7 @@ mason.setup() mason_lspconfig.setup({ -- list of servers for mason to install ensure_installed = { + "clangd", "tsserver", "html", "cssls", @@ -41,6 +42,7 @@ mason_lspconfig.setup({ mason_null_ls.setup({ -- list of formatters & linters for mason to install ensure_installed = { + "clang-format", "prettier", -- ts/js formatter "stylua", -- lua formatter "eslint_d", -- ts/js linter diff --git a/nvim/lua/thomas/plugins/treesitter.lua b/nvim/lua/thomas/plugins/treesitter.lua index 6d2ee75..4c4ba17 100644 --- a/nvim/lua/thomas/plugins/treesitter.lua +++ b/nvim/lua/thomas/plugins/treesitter.lua @@ -17,6 +17,7 @@ treesitter.setup({ autotag = { enable = true }, -- ensure these language parsers are installed ensure_installed = { + "c", "json", "javascript", "typescript",