tweaks to <leader>n and use clippy with rust

lazyvim
Andy Teijelo 2022-11-22 10:05:16 -05:00
parent e3bad09e9f
commit ad0d5db776
3 changed files with 12 additions and 1 deletions

View File

@ -15,7 +15,7 @@ require("catppuccin").setup({
return {
TreesitterContext = { bg = colors.mantle },
TreesitterContextLineNumber = { bg = colors.mantle },
TreesitterContextBottom = { style = { "underline" } },
-- TreesitterContextBottom = { style = { "underline" } },
MultiCursor = { bg = colors.red },
VM_Cursor = { bg = colors.red },
}

View File

@ -130,9 +130,11 @@ local function clean_screen()
if vim.o.number then
vim.diagnostic.show()
vim.opt.signcolumn = "yes"
vim.cmd("syntax on")
else
vim.diagnostic.hide()
vim.opt.signcolumn = "no"
vim.cmd("syntax off")
end
end

View File

@ -0,0 +1,9 @@
return {
settings = {
["rust-analyzer"] = {
checkOnSave = {
command = "clippy",
},
},
},
}