diff options
author | Joe <rrbo@proton.me> | 2023-09-22 11:52:25 +0200 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-09-22 11:52:25 +0200 |
commit | 83cc31aa6b6fc44faefa5d96f4eaf0bcd4fc397d (patch) | |
tree | de3477946c42cb5b65ca82724c86778ffa04b56a /.config/nvim | |
parent | up (diff) | |
download | dotfiles-bsd-83cc31aa6b6fc44faefa5d96f4eaf0bcd4fc397d.tar.gz dotfiles-bsd-83cc31aa6b6fc44faefa5d96f4eaf0bcd4fc397d.tar.bz2 dotfiles-bsd-83cc31aa6b6fc44faefa5d96f4eaf0bcd4fc397d.tar.xz dotfiles-bsd-83cc31aa6b6fc44faefa5d96f4eaf0bcd4fc397d.tar.zst dotfiles-bsd-83cc31aa6b6fc44faefa5d96f4eaf0bcd4fc397d.zip |
up
Diffstat (limited to '')
-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 | ||||
-rw-r--r-- | .config/nvim/init.lua | 11 | ||||
-rw-r--r-- | .config/nvim/lua/plug.lua | 2 |
6 files changed, 20 insertions, 44 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 }, diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 7746dbb..23a115d 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -20,15 +20,4 @@ require('settings') require('bindings') require('sidebars') require('langs') --- require('plugs-config/asyncomplete') --- require('plugs-config/floaterm') --- require('plugs-config/lualine') --- require('plugs-config/nerd-commenter') --- require('plugs-config/org') --- require('plugs-config/quickscope') --- require('plugs-config/rainbow') --- require('plugs-config/signify') --- require('plugs-config/startify') --- require('plugs-config/treesitter') --- require('plugs-config/whichkey') vim.cmd('source ' .. confdir .. '/nvim/plug-config/vim-lsp.vim') diff --git a/.config/nvim/lua/plug.lua b/.config/nvim/lua/plug.lua index d37b99e..191637d 100644 --- a/.config/nvim/lua/plug.lua +++ b/.config/nvim/lua/plug.lua @@ -30,7 +30,7 @@ Plug('tpope/vim-dispatch') Plug('tpope/vim-fugitive') Plug('tpope/vim-speeddating') Plug('tpope/vim-surround') -Plug('unblevable/quick-scope') +-- Plug('unblevable/quick-scope') Plug('vifm/vifm.vim') -- Plug('vim-airline/vim-airline') -- Plug('vim-airline/vim-airline-themes') |