fix: modify nvim config

This commit is contained in:
2024-03-22 11:05:02 +08:00
parent 7ef3a2f073
commit a48619031d
14 changed files with 189 additions and 379 deletions
+3 -1
View File
@@ -7,8 +7,10 @@ vim.api.nvim_create_autocmd("InsertLeave", {
-- Disable the concealing in some file formats
-- The default conceallevel is 3 in LazyVim
vim.api.nvim_create_autocmd("FileType", {
pattern = { "json", "jsonc", "markdown" },
pattern = {"*.js","*.tsx","*.ts", "*.json", "*.jsonc", "*.markdown","*.md" },
callback = function()
vim.opt.conceallevel = 0
vim.o.tabstop = 2
vim.o.shiftwidth = 2
end,
})