chore(neovim): try to reduce slowness when editing helm files
This commit is contained in:
parent
efeb390933
commit
50977758a6
2 changed files with 26 additions and 1 deletions
|
@ -7,6 +7,12 @@ require('lualine').setup {
|
||||||
disabled_filetypes = {},
|
disabled_filetypes = {},
|
||||||
always_divide_middle = true,
|
always_divide_middle = true,
|
||||||
globalstatus = true,
|
globalstatus = true,
|
||||||
|
-- reduce performance impact reducing refresh pace
|
||||||
|
refresh = {
|
||||||
|
statusline = 1500,
|
||||||
|
tabline = 1500,
|
||||||
|
winbar = 1500,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = {'mode'},
|
lualine_a = {'mode'},
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
-- General Option
|
-- General Option
|
||||||
|
vim.opt.syntax = "off";
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
vim.g.maplocalleader = " "
|
vim.g.maplocalleader = " "
|
||||||
|
|
||||||
|
@ -9,7 +10,17 @@ vim.opt.clipboard = 'unnamedplus' --Use system clipboard
|
||||||
vim.opt.colorcolumn = '80'
|
vim.opt.colorcolumn = '80'
|
||||||
vim.opt.directory = os.getenv("HOME") .. '/.local/tmp/nvim'
|
vim.opt.directory = os.getenv("HOME") .. '/.local/tmp/nvim'
|
||||||
vim.opt.expandtab = true
|
vim.opt.expandtab = true
|
||||||
vim.opt.foldmethod = 'syntax'
|
|
||||||
|
-- Foldling code
|
||||||
|
-- Based on threesitter
|
||||||
|
vim.opt.foldmethod = "expr"
|
||||||
|
vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
|
||||||
|
vim.opt.foldcolumn = "0"
|
||||||
|
vim.opt.foldtext = ""
|
||||||
|
vim.opt.foldlevel = 99 -- I don't wand code to be fold by default
|
||||||
|
vim.opt.foldlevelstart = 1
|
||||||
|
vim.opt.foldnestmax = 2 -- max nested fold, 2 seems to be quite sufficient
|
||||||
|
|
||||||
vim.opt.gdefault = true -- search: all occurrences by default
|
vim.opt.gdefault = true -- search: all occurrences by default
|
||||||
vim.opt.hlsearch = true -- search: hightlight terms
|
vim.opt.hlsearch = true -- search: hightlight terms
|
||||||
vim.opt.ignorecase = true
|
vim.opt.ignorecase = true
|
||||||
|
@ -102,3 +113,11 @@ vim.api.nvim_set_keymap('n', '<leader>/', ':nohlsearch<CR>', opts)
|
||||||
vim.api.nvim_set_keymap('n', '<Leader>]', ':tabnext<CR>', opts)
|
vim.api.nvim_set_keymap('n', '<Leader>]', ':tabnext<CR>', opts)
|
||||||
vim.api.nvim_set_keymap('n', '<Leader>[', ':tabprev<CR>', opts)
|
vim.api.nvim_set_keymap('n', '<Leader>[', ':tabprev<CR>', opts)
|
||||||
vim.api.nvim_set_keymap('n', '<leader>l', ':set list!<CR>', {silent = true})
|
vim.api.nvim_set_keymap('n', '<leader>l', ':set list!<CR>', {silent = true})
|
||||||
|
|
||||||
|
-- disable lsplog
|
||||||
|
-- This is not usefull on a daily basis and should positively impact performance
|
||||||
|
vim.lsp.set_log_level("off")
|
||||||
|
|
||||||
|
-- define a timeout for match parens
|
||||||
|
vim.g.matchparen_timeout = 2
|
||||||
|
vim.g.matchparen_insert_timeout = 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue