tweaks to <leader>n and use clippy with rust

This commit is contained in:
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 { return {
TreesitterContext = { bg = colors.mantle }, TreesitterContext = { bg = colors.mantle },
TreesitterContextLineNumber = { bg = colors.mantle }, TreesitterContextLineNumber = { bg = colors.mantle },
TreesitterContextBottom = { style = { "underline" } }, -- TreesitterContextBottom = { style = { "underline" } },
MultiCursor = { bg = colors.red }, MultiCursor = { bg = colors.red },
VM_Cursor = { bg = colors.red }, VM_Cursor = { bg = colors.red },
} }

View file

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

View file

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