diff options
Diffstat (limited to '.config/nvim/after/plugin')
-rw-r--r-- | .config/nvim/after/plugin/quickscope.lua | 12 | ||||
-rw-r--r-- | .config/nvim/after/plugin/startify.lua | 22 | ||||
-rw-r--r-- | .config/nvim/after/plugin/treesitter.lua | 15 | ||||
-rw-r--r-- | .config/nvim/after/plugin/whichkey.lua | 2 |
4 files changed, 19 insertions, 32 deletions
diff --git a/.config/nvim/after/plugin/quickscope.lua b/.config/nvim/after/plugin/quickscope.lua index 9fa10fe..e024bba 100644 --- a/.config/nvim/after/plugin/quickscope.lua +++ b/.config/nvim/after/plugin/quickscope.lua @@ -1,7 +1,7 @@ -- Quickscope -vim.g.qs_highlight_on_keys = { 'f', 'F', 't', 'T' } -vim.g.qs_max_chars=150 -vim.cmd [[ -highlight QuickScopePrimary guifg='#00C7DF' gui=underline ctermfg=155 cterm=underline -highlight QuickScopeSecondary guifg='#afff5f' gui=underline ctermfg=81 cterm=underline -]] +-- vim.g.qs_highlight_on_keys = { 'f', 'F', 't', 'T' } +-- vim.g.qs_max_chars=150 +-- vim.cmd [[ +-- highlight QuickScopePrimary guifg='#00C7DF' gui=underline ctermfg=155 cterm=underline +-- highlight QuickScopeSecondary guifg='#afff5f' gui=underline ctermfg=81 cterm=underline +-- ]] diff --git a/.config/nvim/after/plugin/startify.lua b/.config/nvim/after/plugin/startify.lua index a5d3efc..cd510a9 100644 --- a/.config/nvim/after/plugin/startify.lua +++ b/.config/nvim/after/plugin/startify.lua @@ -1,17 +1,17 @@ -- Startify vim.cmd [[ let g:startify_custom_header = startify#pad([ -\ '==========================', -\ '====== ================', -\ '======= =================', -\ '======= =================', -\ '======= ==== ==== ===', -\ '======= === == = ==', -\ '======= === = == ==', -\ '== === === = == =====', -\ '== === === = == = ==', -\ '=== ===== ==== ===', -\ '==========================', +\ '========================', +\ '===== ===============', +\ '====== ================', +\ '====== ================', +\ '====== ==== ==== ==', +\ '====== === == = =', +\ '====== === = == =', +\ '= === === = == ====', +\ '= === === = == = =', +\ '== ===== ==== ==', +\ '========================', \ ]) let g:startify_lists = [ \ { 'type': 'sessions', 'header': startify#pad(['Sessions']) }, diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua index 62b960b..7865930 100644 --- a/.config/nvim/after/plugin/treesitter.lua +++ b/.config/nvim/after/plugin/treesitter.lua @@ -1,6 +1,6 @@ require'nvim-treesitter.configs'.setup { -- A list of parser names, or "all" (the five listed parsers should always be installed) - ensure_installed = { "c", "cpp", "lua", "vim", "vimdoc", "query", "go" }, + ensure_installed = { "c", "cpp", "lua", "vim", "vimdoc", "query", "go", "rust" }, -- Install parsers synchronously (only applied to `ensure_installed`) sync_install = false, @@ -12,19 +12,6 @@ require'nvim-treesitter.configs'.setup { highlight = { enable = true, - -- NOTE: these are the names of the parsers and not the filetype. (for example if you want to - -- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is - -- the name of the parser) - -- list of language that will be disabled - -- Or use a function for more flexibility, e.g. to disable slow treesitter highlight for large files - 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, - -- Setting this to true will run `:h syntax` and tree-sitter at the same time. -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). -- Using this option may slow down your editor, and you may see some duplicate highlights. diff --git a/.config/nvim/after/plugin/whichkey.lua b/.config/nvim/after/plugin/whichkey.lua index 71274e1..05f29e9 100644 --- a/.config/nvim/after/plugin/whichkey.lua +++ b/.config/nvim/after/plugin/whichkey.lua @@ -4,7 +4,7 @@ local wk = require('which-key') wk.register({ b = { ':Buffers<CR>', 'buffers', noremap = true, silent = true }, c = { name = '+nerd-commenter' }, - d = { ':bd<CR>', 'close buffer', noremap = true, silent = false }, + d = { ':bd<CR>', 'close buffer', noremap = true, silent = true }, e = { ':Telescope find_files<CR>', 'find files', noremap = true, silent = true }, G = { ':FloatermNew lazygit<CR>', 'lazygit', noremap = true, silent = true }, h = { ':Startify<CR>', 'startify', noremap = true, silent = true }, |