fix(nvim): New lspconfig notation, 4 tab size
This commit is contained in:
@@ -32,10 +32,10 @@ vim.o.hlsearch = false
|
|||||||
-- Make line numbers default
|
-- Make line numbers default
|
||||||
vim.wo.number = true
|
vim.wo.number = true
|
||||||
|
|
||||||
vim.o.tabstop = 2 -- A TAB character looks like 2 spaces
|
vim.o.tabstop = 4 -- A TAB character looks like 4 spaces
|
||||||
vim.o.expandtab = true -- Pressing the TAB key will insert spaces instead of a TAB character
|
vim.o.expandtab = true -- Pressing the TAB key will insert spaces instead of a TAB character
|
||||||
vim.o.softtabstop = 2 -- Number of spaces inserted instead of a TAB character
|
vim.o.softtabstop = 4 -- Number of spaces inserted instead of a TAB character
|
||||||
vim.o.shiftwidth = 2 -- Number of spaces inserted when indenting
|
vim.o.shiftwidth = 4 -- Number of spaces inserted when indenting
|
||||||
|
|
||||||
-- Ruler at 100 characters
|
-- Ruler at 100 characters
|
||||||
vim.o.colorcolumn = "100"
|
vim.o.colorcolumn = "100"
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
local lspconfig = require("lspconfig")
|
vim.lsp.config.lua_ls = {
|
||||||
|
cmd = { "lua-language-server" },
|
||||||
lspconfig.lua_ls.setup({
|
|
||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
@@ -9,14 +8,16 @@ lspconfig.lua_ls.setup({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
}
|
||||||
|
|
||||||
lspconfig.rust_analyzer.setup({
|
vim.lsp.config.rust_analyzer = {
|
||||||
|
cmd = { "rust-analyzer" },
|
||||||
cargo = {
|
cargo = {
|
||||||
features = { "all" },
|
features = { "all" },
|
||||||
},
|
},
|
||||||
})
|
}
|
||||||
|
|
||||||
lspconfig.gopls.setup({
|
vim.lsp.config.gopls = {
|
||||||
|
cmd = { "gopls" },
|
||||||
filetypes = { "go", "gomod", "gowork", "gotmpl" },
|
filetypes = { "go", "gomod", "gowork", "gotmpl" },
|
||||||
})
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user