Adjusting nim lsp
This commit is contained in:
18
lua/lsp.lua
18
lua/lsp.lua
@@ -28,7 +28,23 @@ vim.lsp.enable('gopls', {
|
||||
},
|
||||
},
|
||||
})
|
||||
vim.lsp.enable('nimlsp')
|
||||
-- Configure nimlangserver
|
||||
local lspconfig = require('lspconfig')
|
||||
lspconfig.nim_langserver.setup({
|
||||
cmd = { "nimlangserver" },
|
||||
filetypes = { "nim" },
|
||||
root_dir = function(fname)
|
||||
return lspconfig.util.find_git_ancestor(fname) or
|
||||
lspconfig.util.find_node_modules_ancestor(fname) or
|
||||
lspconfig.util.path.dirname(fname)
|
||||
end,
|
||||
settings = {
|
||||
nim = {
|
||||
nimsuggestPath = "nimsuggest",
|
||||
nimprettyPath = "nimpretty",
|
||||
}
|
||||
},
|
||||
})
|
||||
require("lsp_signature").setup({
|
||||
debug = false,
|
||||
bind = true, -- registers signature handler
|
||||
|
||||
Reference in New Issue
Block a user