refactor config

This commit is contained in:
Alexander Navarro 2023-02-13 01:53:52 -03:00
commit 4f0e213f4a
155 changed files with 13983 additions and 0 deletions

View file

@ -0,0 +1,38 @@
local mapper = require("nvim-mapper")
require('nvim-comment-frame').setup({
-- if true, <leader>cf keymap will be disabled
disable_default_keymap = true,
-- width of the comment frame
frame_width = 70,
-- wrap the line after 'n' characters
line_wrap_len = 50,
-- automatically indent the comment frame based on the line
auto_indent = true,
-- add comment above the current line
add_comment_above = true,
-- configurations for individual language goes here
languages = {
dosini = {
start_str = ';;',
end_str = ';;',
fill_char = '*',
auto_indent = false
}
}
})
mapper.map('n', '<Leader>ch',
[[:lua require('nvim-comment-frame').add_comment()<CR>]],
{silent = true, noremap = true}, "nvim-comment-frame", "one line",
"Add one line header")
mapper.map('n', '<Leader>cH',
[[:lua require('nvim-comment-frame').add_multiline_comment()<CR>]],
{silent = true, noremap = true}, "nvim-comment-frame", "multi line",
"Add multi line header")