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
|
-- Customize Treesitter
|
||||||
|
|
||||||
---@type LazySpec
|
---@type LazySpec
|
||||||
|
|
@ -10,11 +10,24 @@ return {
|
||||||
"vim",
|
"vim",
|
||||||
"markdown",
|
"markdown",
|
||||||
-- add more arguments for adding more treesitter parsers
|
-- add more arguments for adding more treesitter parsers
|
||||||
"selinux",
|
|
||||||
},
|
},
|
||||||
|
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
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 {
|
-- require("nvim-surround").setup {
|
||||||
opts = {
|
opts = {
|
||||||
keymaps = {
|
keymaps = {
|
||||||
normal = "gs",
|
normal = ",s",
|
||||||
normal_line = "gS",
|
normal_line = "gS",
|
||||||
delete = "dgs",
|
delete = "d,s",
|
||||||
visual = "gs",
|
visual = ",S",
|
||||||
visual_line = "gS",
|
visual_line = ",S",
|
||||||
change = "cgs",
|
change = "cgs",
|
||||||
change_line = "cgS",
|
change_line = "cgS",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue