Compare commits
No commits in common. "eca0ed608d04499283acdfa525035162aaf94ff6" and "19bc79a96bcef113a17008933f50bd701c3b3045" have entirely different histories.
eca0ed608d
...
19bc79a96b
2 changed files with 19 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
-- if true then return {} end
|
||||
if true then return {} end
|
||||
-- Customize Treesitter
|
||||
|
||||
---@type LazySpec
|
||||
|
|
@ -10,11 +10,24 @@ return {
|
|||
"vim",
|
||||
"markdown",
|
||||
-- add more arguments for adding more treesitter parsers
|
||||
"selinux",
|
||||
},
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
|
||||
|
||||
parser_config["selinux"] = {
|
||||
install_info = {
|
||||
url = "~/code/tree-sitter-selinux/",
|
||||
files = { "src/parser.c" },
|
||||
branch = "main",
|
||||
generate_requires_npm = false,
|
||||
requires_generate_from_grammar = false,
|
||||
},
|
||||
filetype = "te",
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -155,11 +155,11 @@ return {
|
|||
-- require("nvim-surround").setup {
|
||||
opts = {
|
||||
keymaps = {
|
||||
normal = "gs",
|
||||
normal = ",s",
|
||||
normal_line = "gS",
|
||||
delete = "dgs",
|
||||
visual = "gs",
|
||||
visual_line = "gS",
|
||||
delete = "d,s",
|
||||
visual = ",S",
|
||||
visual_line = ",S",
|
||||
change = "cgs",
|
||||
change_line = "cgS",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue