Nvim: optimize config, change colorscheme to kanagawa

This commit is contained in:
Robert Kmieć
2023-03-23 08:56:45 +01:00
parent f1e79ee50e
commit dd12fee249
9 changed files with 64 additions and 243 deletions

View File

@@ -15,6 +15,13 @@ return {
ts.setup {
highlight = {
enable = true,
disable = function(lang, buf)
local max_filesize = 100 * 1024 -- 100 KB
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
if ok and stats and stats.size > max_filesize then
return true
end
end,
additional_vim_regex_highlighting = false,
},
ensure_installed = {
@@ -24,7 +31,7 @@ return {
"bibtex",
"c",
"cmake",
"comment",
--"comment",
"cpp",
"devicetree",
"diff",
@@ -90,6 +97,6 @@ return {
},
}
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
-- vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
end
}