Add neovim config

This commit is contained in:
Valeriy Filippov
2026-03-05 16:34:38 +03:00
commit 210e99d004
36 changed files with 845 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
-- https://github.com/numToStr/Comment.nvim
return {
"numToStr/Comment.nvim",
event = { "BufReadPre", "BufNewFile" },
dependencies = {
"JoosepAlviste/nvim-ts-context-commentstring",
},
config = function()
-- import comment plugin safely
local comment = require("Comment")
local ts_context_commentstring = require("ts_context_commentstring.integrations.comment_nvim")
-- enable comment
comment.setup({
-- for commenting tsx, jsx, svelte, html files
pre_hook = ts_context_commentstring.create_pre_hook(),
})
end,
}