summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/init.lua3
-rw-r--r--.config/nvim/lua/plugs-config/nerd-commenter.lua14
-rw-r--r--.config/nvim/plug-config/nerd-commenter.vim9
3 files changed, 16 insertions, 10 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index 5e89f9e..7dcb41e 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -25,7 +25,8 @@ require('plugs-config/floaterm')
require('plugs-config/lualine')
require('plugs-config/treesitter')
require('plugs-config/whichkey')
-vim.cmd('source ' .. confdir .. '/nvim/plug-config/nerd-commenter.vim')
+require('plugs-config/nerd-commenter')
+-- vim.cmd('source ' .. confdir .. '/nvim/plug-config/nerd-commenter.vim')
vim.cmd('source ' .. confdir .. '/nvim/plug-config/org.vim')
vim.cmd('source ' .. confdir .. '/nvim/plug-config/quickscope.vim')
vim.cmd('source ' .. confdir .. '/nvim/plug-config/rainbow.vim')
diff --git a/.config/nvim/lua/plugs-config/nerd-commenter.lua b/.config/nvim/lua/plugs-config/nerd-commenter.lua
new file mode 100644
index 0000000..ddfadf2
--- /dev/null
+++ b/.config/nvim/lua/plugs-config/nerd-commenter.lua
@@ -0,0 +1,14 @@
+-- NERD Commenter
+vim.g.NERDSpaceDelims = 1
+vim.g.NERDCompactSexyComs = 1
+vim.g.NERDDefaultAlign = 'left'
+vim.g.NERDAltDelims_java = 1
+vim.g.NERDCustomDelimiters = {
+ c = {
+ left = '/*',
+ right = '*/',
+ }
+}
+vim.g.NERDCommentEmptyLines = 1
+vim.g.NERDTrimTrailingWhitespace = 1
+vim.g.NERDToggleCheckAllLines = 1
diff --git a/.config/nvim/plug-config/nerd-commenter.vim b/.config/nvim/plug-config/nerd-commenter.vim
deleted file mode 100644
index 04a942d..0000000
--- a/.config/nvim/plug-config/nerd-commenter.vim
+++ /dev/null
@@ -1,9 +0,0 @@
-" NERD Commenter
-let g:NERDSpaceDelims = 1
-let g:NERDCompactSexyComs = 1
-let g:NERDDefaultAlign = 'left'
-let g:NERDAltDelims_java = 1
-let g:NERDCustomDelimiters = { 'c': { 'left': '/*','right': '*/' } }
-let g:NERDCommentEmptyLines = 1
-let g:NERDTrimTrailingWhitespace = 1
-let g:NERDToggleCheckAllLines = 1