diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index b437f02..a03ba39 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -1,4 +1,4 @@ -if true then return {} end +-- if true then return {} end -- Customize Treesitter ---@type LazySpec @@ -10,24 +10,11 @@ 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, } diff --git a/lua/plugins/user.lua b/lua/plugins/user.lua index 191d904..58de26c 100644 --- a/lua/plugins/user.lua +++ b/lua/plugins/user.lua @@ -155,11 +155,11 @@ return { -- require("nvim-surround").setup { opts = { keymaps = { - normal = ",s", + normal = "gs", normal_line = "gS", - delete = "d,s", - visual = ",S", - visual_line = ",S", + delete = "dgs", + visual = "gs", + visual_line = "gS", change = "cgs", change_line = "cgS", },