sessions and nvim tree
This commit is contained in:
parent
b542af2f39
commit
78f04bda73
12 changed files with 239 additions and 12 deletions
26
lua/plugins/comments_support.lua
Normal file
26
lua/plugins/comments_support.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
return {
|
||||
"preservim/nerdcommenter",
|
||||
dependencies = {
|
||||
{
|
||||
-- This will auto change the commentstring option in files that could have varying
|
||||
-- comment modes like in jsx/markdown/files with embedded languages
|
||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||
init = function()
|
||||
-- skip backwards compatibility routines and speed up loading
|
||||
vim.g.skip_ts_context_commentstring_module = true
|
||||
end,
|
||||
config = function()
|
||||
require("ts_context_commentstring").setup({})
|
||||
end,
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
vim.g.NERDCreateDefaultMappings = 0
|
||||
vim.g.NERDDefaultAlign = "both"
|
||||
vim.g.NERDSpaceDelims = 1
|
||||
vim.cmd("filetype plugin on")
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>/", "<Plug>NERDCommenterToggle<cr>k", mode = { "n", "x" } },
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue