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,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -4,6 +4,7 @@ return {
|
||||
tag = '0.1.8',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
cmd = "Telescope",
|
||||
build = 'cmake -S -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release --target install',
|
||||
keys = {
|
||||
{ '<leader>f', '<cmd>Telescope find_files<cr>', mode = { "n" }, desc = "Telescope find_files" },
|
||||
{ '<leader>b', '<cmd>Telescope buffers<cr>', mode = { "n" }, desc = "Telescope buffers" },
|
||||
|
||||
Reference in New Issue
Block a user