start full-soy vim config, change colors a bit, general YOLO commit
This commit is contained in:
parent
4ff5fc37a6
commit
4bda92d47d
17 changed files with 439 additions and 120 deletions
3
nvim.lua/.config/nvim/lua/lsp/nix.lua
Normal file
3
nvim.lua/.config/nvim/lua/lsp/nix.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
require'lspconfig'.rnix.setup{
|
||||
autostart = false,
|
||||
}
|
32
nvim.lua/.config/nvim/lua/lsp/rust.lua
Normal file
32
nvim.lua/.config/nvim/lua/lsp/rust.lua
Normal file
|
@ -0,0 +1,32 @@
|
|||
-- nvim_lsp object
|
||||
local nvim_lsp = require'lspconfig'
|
||||
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
|
||||
-- Enable rust_analyzer
|
||||
nvim_lsp.rust_analyzer.setup({
|
||||
autostart=false,
|
||||
capabilities=capabilities,
|
||||
-- on_attach is a callback called when the language server attachs to the buffer
|
||||
-- on_attach = on_attach,
|
||||
settings = {
|
||||
-- to enable rust-analyzer settings visit:
|
||||
-- https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/user/generated_config.adoc
|
||||
["rust-analyzer"] = {
|
||||
-- enable clippy diagnostics on save
|
||||
checkOnSave = {
|
||||
command = "clippy"
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
-- Enable diagnostics
|
||||
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
||||
vim.lsp.diagnostic.on_publish_diagnostics, {
|
||||
virtual_text = false,
|
||||
signs = true,
|
||||
update_in_insert = true,
|
||||
}
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue