-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
136 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,119 @@ | ||
return { | ||
{ | ||
-- Highlight, edit, and navigate code | ||
'nvim-treesitter/nvim-treesitter', | ||
dependencies = { | ||
'nvim-treesitter/nvim-treesitter-textobjects', | ||
}, | ||
build = ':TSUpdate', | ||
}, | ||
{ | ||
-- Highlight, edit, and navigate code | ||
"nvim-treesitter/nvim-treesitter", | ||
dependencies = { | ||
"luckasRanarison/tree-sitter-hyprlang", | ||
"nvim-treesitter/nvim-treesitter-textobjects", | ||
"windwp/nvim-ts-autotag", | ||
}, | ||
opts = { | ||
-- Add languages to be installed here that you want installed for treesitter | ||
ensure_installed = { | ||
"c", | ||
"cpp", | ||
"go", | ||
"lua", | ||
"python", | ||
"rust", | ||
"tsx", | ||
"javascript", | ||
"typescript", | ||
"vimdoc", | ||
"vim", | ||
"bash", | ||
}, | ||
|
||
{ | ||
"luckasRanarison/tree-sitter-hyprlang", | ||
dependencies = { "nvim-treesitter/nvim-treesitter" }, | ||
}, | ||
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!) | ||
auto_install = true, | ||
|
||
-- Non-LSP linters and formatters | ||
'nvimtools/none-ls.nvim', | ||
highlight = { enable = true }, | ||
indent = { enable = true }, | ||
incremental_selection = { | ||
enable = true, | ||
keymaps = { | ||
init_selection = "<c-space>", | ||
node_incremental = "<c-space>", | ||
scope_incremental = "<c-s>", | ||
node_decremental = "<M-space>", | ||
}, | ||
}, | ||
textobjects = { | ||
select = { | ||
enable = true, | ||
lookahead = true, -- Automatically jump forward to textobj, similar to targets.vim | ||
keymaps = { | ||
-- You can use the capture groups defined in textobjects.scm | ||
["aa"] = "@parameter.outer", | ||
["ia"] = "@parameter.inner", | ||
["af"] = "@function.outer", | ||
["if"] = "@function.inner", | ||
["ac"] = "@class.outer", | ||
["ic"] = "@class.inner", | ||
}, | ||
}, | ||
move = { | ||
enable = true, | ||
set_jumps = true, -- whether to set jumps in the jumplist | ||
goto_next_start = { | ||
["]m"] = "@function.outer", | ||
["]]"] = "@class.outer", | ||
}, | ||
goto_next_end = { | ||
["]M"] = "@function.outer", | ||
["]["] = "@class.outer", | ||
}, | ||
goto_previous_start = { | ||
["[m"] = "@function.outer", | ||
["[["] = "@class.outer", | ||
}, | ||
goto_previous_end = { | ||
["[M"] = "@function.outer", | ||
["[]"] = "@class.outer", | ||
}, | ||
}, | ||
swap = { | ||
enable = true, | ||
swap_next = { | ||
["<leader>a"] = "@parameter.inner", | ||
}, | ||
swap_previous = { | ||
["<leader>A"] = "@parameter.inner", | ||
}, | ||
}, | ||
}, | ||
autotag = { | ||
enable = true, | ||
}, | ||
}, | ||
build = ":TSUpdate", | ||
}, | ||
|
||
-- Easily surround text | ||
{ | ||
"kylechui/nvim-surround", | ||
version = "*", -- Use for stability; omit to use `main` branch for the latest features | ||
event = "VeryLazy", | ||
config = function() | ||
require("nvim-surround").setup({ | ||
-- Configuration here, or leave empty to use defaults | ||
}) | ||
end | ||
}, | ||
-- Non-LSP linters and formatters | ||
"nvimtools/none-ls.nvim", | ||
|
||
-- Add indentation guides even on blank lines | ||
{ | ||
'lukas-reineke/indent-blankline.nvim', | ||
main = 'ibl', | ||
opts = {}, | ||
}, | ||
-- Easily surround text | ||
{ | ||
"kylechui/nvim-surround", | ||
version = "*", -- Use for stability; omit to use `main` branch for the latest features | ||
event = "VeryLazy", | ||
config = function() | ||
require("nvim-surround").setup({ | ||
-- Configuration here, or leave empty to use defaults | ||
}) | ||
end, | ||
}, | ||
|
||
-- "gc" to comment visual regions/lines | ||
{ | ||
'numToStr/Comment.nvim', | ||
opts = {} | ||
}, | ||
-- Add indentation guides even on blank lines | ||
{ | ||
"lukas-reineke/indent-blankline.nvim", | ||
main = "ibl", | ||
opts = {}, | ||
}, | ||
|
||
-- "gc" to comment visual regions/lines | ||
{ | ||
"numToStr/Comment.nvim", | ||
opts = {}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,6 +78,7 @@ | |
nodejs_latest | ||
cargo | ||
gradle | ||
maven | ||
|
||
# CLI programs | ||
neovim | ||
|