nvim: various tweaks
This commit is contained in:
parent
150743e3db
commit
0d6f94cbb4
3 changed files with 4 additions and 0 deletions
|
@ -99,6 +99,7 @@ return packer.startup(function(use)
|
||||||
use("hrsh7th/cmp-nvim-lsp") -- for autocompletion
|
use("hrsh7th/cmp-nvim-lsp") -- for autocompletion
|
||||||
use({ "glepnir/lspsaga.nvim", branch = "main" })
|
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("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
|
use("onsails/lspkind.nvim") -- vs-code like icons for autocompletion
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@ mason.setup()
|
||||||
mason_lspconfig.setup({
|
mason_lspconfig.setup({
|
||||||
-- list of servers for mason to install
|
-- list of servers for mason to install
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
|
"clangd",
|
||||||
"tsserver",
|
"tsserver",
|
||||||
"html",
|
"html",
|
||||||
"cssls",
|
"cssls",
|
||||||
|
@ -41,6 +42,7 @@ mason_lspconfig.setup({
|
||||||
mason_null_ls.setup({
|
mason_null_ls.setup({
|
||||||
-- list of formatters & linters for mason to install
|
-- list of formatters & linters for mason to install
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
|
"clang-format",
|
||||||
"prettier", -- ts/js formatter
|
"prettier", -- ts/js formatter
|
||||||
"stylua", -- lua formatter
|
"stylua", -- lua formatter
|
||||||
"eslint_d", -- ts/js linter
|
"eslint_d", -- ts/js linter
|
||||||
|
|
|
@ -17,6 +17,7 @@ treesitter.setup({
|
||||||
autotag = { enable = true },
|
autotag = { enable = true },
|
||||||
-- ensure these language parsers are installed
|
-- ensure these language parsers are installed
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
|
"c",
|
||||||
"json",
|
"json",
|
||||||
"javascript",
|
"javascript",
|
||||||
"typescript",
|
"typescript",
|
||||||
|
|
Loading…
Add table
Reference in a new issue