nvim: Remove extraneous lsp setup for defaults

This commit is contained in:
Marty Oehme 2022-11-01 16:03:30 +01:00
parent 03a4148796
commit 0220f7f03f
Signed by: Marty
GPG key ID: 73BA40D5AFAF49C9

View file

@ -1,65 +1,3 @@
-- The arch package defaults to the following directory
local sumneko_root_path = "/usr/share/lua-language-server"
require'navigator'.setup({
lsp = {
servers = {'efm'},
disable_lsp = {"pylsp", "jedi_language_server"},
sumneko_lua = {
cmd = {
"lua-language-server", "-E", sumneko_root_path .. "/main.lua"
},
settings = {
Lua = {
runtime = {
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT',
-- Setup your lua path
path = vim.split(package.path, ';')
},
diagnostics = {
-- Get the language server to recognize additional globals
globals = {
'vim', 'before_each', 'after_each', 'describe',
'it', 'mock', 'stub'
}
},
workspace = {
-- Make the server aware of additional runtime files
library = {
[vim.fn.expand('$VIMRUNTIME/lua')] = true,
[vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true,
["/usr/share/lua/5.1/busted/"] = true
}
}
}
}
},
efm = {
init_options = {
documentFormatting = true,
codeAction = true,
completion = true,
documentSymbol = true,
hover = true
},
filetypes = {"sh"},
settings = {
rootMarkers = {".git/"},
languages = {
sh = {
{
lintCommand = 'shellcheck -f gcc -x',
lintFormats = {
'%f:%l:%c: %trror: %m',
'%f:%l:%c: %tarning: %m', '%f:%l:%c: %tote: %m'
}
},
{formatCommand = 'shfmt -ci -s -bn', formatStdin = true}
}
}
}
}
}
})
require'navigator'.setup()
require"lsp_signature".setup()