Skip to content

Commit

Permalink
plugins: replace wildfire.vim with wildfire.nvim
Browse files Browse the repository at this point in the history
Now we have treesitter support!!!!!!

Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed Nov 17, 2023
1 parent 10d13ec commit 2ba9967
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@
"vim-visual-multi": { "branch": "master", "commit": "aec289a9fdabaa0ee6087d044d75b32e12084344" },
"vim-vsnip": { "branch": "master", "commit": "8eebdf6ab4a880d845893f210fd20516d2e2384f" },
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" },
"wildfire.vim": { "branch": "master", "commit": "dfcf48aad2e80c63272df67a1b81e37cbc443412" }
"wildfire.nvim": { "branch": "master", "commit": "1729faca1c6ae34520a6e531983a3737d3654ee1" }
}
5 changes: 4 additions & 1 deletion lua/tools/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,11 @@ register("nvim-telescope/telescope.nvim", {
})

-- Quick select for text objects
register("gcmt/wildfire.vim", {
register("sustech-data/wildfire.nvim", {
keys = "<Enter>",
config = function()
require("wildfire").setup()
end,
})

-- Surround operation
Expand Down
26 changes: 10 additions & 16 deletions lua/treesitter/config.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
require("nvim-treesitter.configs").setup({
auto_install = false,
incremental_selection = {
enable = true,
keymaps = {
init_selection = false,
node_incremental = false,
scope_incremental = false,
node_decremental = false,
},
},
highlight = {
enable = true,
},
Expand All @@ -19,22 +28,7 @@ require("nvim-treesitter.configs").setup({
-- Automatically jump forward to textobj, similar to targets.vim
lookahead = true,

keymaps = {
["af"] = "@function.outer",
["if"] = "@function.inner",
["ac"] = "@class.outer",
["ic"] = "@class.inner",
["ab"] = "@block.outer",
["ib"] = "@block.inner",
["al"] = "@call.outer",
["il"] = "@call.inner",
["aP"] = "@parameter.outer",
["iP"] = "@parameter.inner",
["ao"] = "@conditional.outer",
["io"] = "@conditional.inner",
["as"] = "@statement.outer",
["ar"] = "@assignment.rhs",
},
keymaps = {},
},
},
})
Expand Down

0 comments on commit 2ba9967

Please sign in to comment.