end
require("mason-null-ls").setup({
- automatic_installation = true,
+ automatic_installation = false,
handlers = {
function()
end,
-- servers to setup
local lsp = require("lspconfig")
- lsp.awk_ls.setup({ on_attach = keybinds })
lsp.bashls.setup({ on_attach = keybinds })
lsp.clangd.setup({ on_attach = keybinds })
lsp.cssls.setup({ on_attach = keybinds })
vim.highlight.priorities.semantic_tokens = 95
-- custom signs
- local signs = { Error = ">>", Warn = "> ", Hint = "- ", Info = " " }
+ local signs = { Error = ">>", Warn = "> ", Hint = "- ", Info = "* " }
for type, icon in pairs(signs) do
local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
{
'simrat39/rust-tools.nvim',
- ft = "rust",
+ event = { "BufReadPost *.rs" },
config = function()
local rust = require("rust-tools")
}
},
server = {
+ standalone = false,
settings = {
['rust-analyzer'] = {
completion = {
}
}
)
+
+ -- auto format code on save
+ vim.api.nvim_create_autocmd("BufWritePre", {
+ pattern = { "*" },
+ callback = function()
+ vim.lsp.buf.format()
+ end,
+ })
end
},
}