diff options
author | Adam <56338480+adastx@users.noreply.github.com> | 2021-10-06 12:50:06 +0200 |
---|---|---|
committer | Adam <56338480+adastx@users.noreply.github.com> | 2021-10-06 13:03:14 +0200 |
commit | 95ce104cb9493fdfc40081d51d9558ba01f75efc (patch) | |
tree | ab112f74ae03526f55b9e37d363dd197d6867bba /.config/nvim | |
parent | ef60da241458cf1706a71e1e67ee936cf2273857 (diff) |
nvim installed comment plugin
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/init.vim | 18 | ||||
-rw-r--r-- | .config/nvim/lua/opts.lua | 2 | ||||
-rw-r--r-- | .config/nvim/lua/plugins.lua | 1 | ||||
-rw-r--r-- | .config/nvim/lua/setup.lua | 1 |
4 files changed, 12 insertions, 10 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 614be0c..7764174 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -1,27 +1,27 @@ if has('filetype') - filetype indent plugin on + filetype indent plugin on endif if has('syntax') - syntax on + syntax on endif if has('mouse') - set mouse=a + set mouse=a endif if has('persistent_undo') - set undodir=$HOME/.vim/undo - set undofile + set undodir=$HOME/.vim/undo + set undofile endif lua require 'init' lua << EOF require 'colorizer'.setup { - '*'; - '!vim'; - css = { rgb_fn = true; }; - html = { names = false; } + '*'; + '!vim'; + css = { rgb_fn = true; }; + html = { names = false; } } EOF diff --git a/.config/nvim/lua/opts.lua b/.config/nvim/lua/opts.lua index 7750921..259f460 100644 --- a/.config/nvim/lua/opts.lua +++ b/.config/nvim/lua/opts.lua @@ -68,3 +68,5 @@ require'nvim-treesitter.configs'.setup { enable = true, }, } + +require('kommentary.config').use_extended_mappings() diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 2866afe..afcfa5d 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -12,6 +12,7 @@ return require('packer').startup(function() use 'kyazdani42/nvim-web-devicons' use 'norcalli/nvim-colorizer.lua' + use 'b3nj5m1n/kommentary' use { 'nvim-telescope/telescope.nvim', diff --git a/.config/nvim/lua/setup.lua b/.config/nvim/lua/setup.lua index ae460e7..f6e0d6e 100644 --- a/.config/nvim/lua/setup.lua +++ b/.config/nvim/lua/setup.lua @@ -18,7 +18,6 @@ set.autoindent = true set.expandtab = true set.showmode = false set.ruler = false -set.cmdheight = 2 set.timeout = false set.ttimeoutlen = 200 |