nvim: Update neovim
Update for latest version of neovim and plugins Signed-off-by: Nicholas Mello <nick@nmello.dev>
This commit is contained in:
@@ -63,20 +63,18 @@ return {
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
local lspconfig = require("lspconfig")
|
||||
vim.lsp.config('lua_ls', {})
|
||||
|
||||
lspconfig.lua_ls.setup {}
|
||||
vim.lsp.config('pyright', {})
|
||||
|
||||
lspconfig.pyright.setup {}
|
||||
vim.lsp.config('bashls', {})
|
||||
|
||||
lspconfig.bashls.setup {}
|
||||
vim.lsp.config('fish_lsp', {})
|
||||
|
||||
lspconfig.fish_lsp.setup {}
|
||||
|
||||
lspconfig.rust_analyzer.setup {
|
||||
vim.lsp.config('rust_analyzer', {
|
||||
root_dir = function(fname)
|
||||
-- Look for Cargo.toml to define project root
|
||||
return lspconfig.util.root_pattern("Cargo.toml")(fname)
|
||||
return vim.lsp.config().util.root_pattern("Cargo.toml")(fname)
|
||||
end,
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
@@ -84,7 +82,7 @@ return {
|
||||
checkOnSave = { command = "clippy" }, -- Run linter
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user