nvim: Remove extraneous lsp setup for defaults
This commit is contained in:
parent
03a4148796
commit
0220f7f03f
1 changed files with 1 additions and 63 deletions
|
@ -1,65 +1,3 @@
|
||||||
-- The arch package defaults to the following directory
|
-- The arch package defaults to the following directory
|
||||||
local sumneko_root_path = "/usr/share/lua-language-server"
|
require'navigator'.setup()
|
||||||
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"lsp_signature".setup()
|
require"lsp_signature".setup()
|
||||||
|
|
Loading…
Reference in a new issue