feat(nvim): switch rust-tools to rustaceanvim

This commit is contained in:
u2515h
2024-01-06 22:04:48 +01:00
parent a909ea3bf3
commit 838f1fb262
3 changed files with 35 additions and 9 deletions

View File

@@ -20,6 +20,13 @@ autocmd CursorHold * lua vim.diagnostic.open_float(nil, { focusable = false })
vim.opt.spell = true
vim.opt.spelllang = {'en_us'}
vim.lsp.handlers["textDocument/publishDiagnostics"] =
vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics,
{
virtual_text = true,
}
)
-- Completion Plugin Setup
local cmp = require 'cmp'
cmp.setup({
@@ -82,3 +89,8 @@ cmp.setup({
end
}
})
cmp.setup.cmdline('/', {
sources = {
{ name = 'buffer' },
}
})