mirror of
https://codeberg.org/diginaut/dotfiles.git
synced 2026-02-04 15:50:26 +01:00
Compare commits
2 Commits
bd46317803
...
8d58ebd8aa
| Author | SHA1 | Date | |
|---|---|---|---|
| 8d58ebd8aa | |||
| 0ee41c2751 |
5
.config/nvim/lua/plugins/luarocks.lua
Normal file
5
.config/nvim/lua/plugins/luarocks.lua
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
return {
|
||||||
|
"vhyrro/luarocks.nvim",
|
||||||
|
priority = 1000, -- Very high priority is required, luarocks.nvim should run as the first plugin in your config.
|
||||||
|
config = true,
|
||||||
|
}
|
||||||
@@ -1,80 +1,5 @@
|
|||||||
return {
|
return {
|
||||||
{
|
"nvim-treesitter/nvim-treesitter",
|
||||||
'nvim-treesitter/nvim-treesitter',
|
lazy = false,
|
||||||
|
build = ":TSUpdate",
|
||||||
dependencies = {
|
|
||||||
'nvim-treesitter/nvim-treesitter-textobjects',
|
|
||||||
'nvim-treesitter/nvim-treesitter-refactor',
|
|
||||||
},
|
|
||||||
|
|
||||||
opts = {
|
|
||||||
ensure_installed = {},
|
|
||||||
sync_install = 'false',
|
|
||||||
auto_install = 'true',
|
|
||||||
|
|
||||||
highlight = {
|
|
||||||
enable = true,
|
|
||||||
additional_vim_regex_highlighting = false,
|
|
||||||
},
|
|
||||||
|
|
||||||
incremental_selection = {
|
|
||||||
enable = true,
|
|
||||||
keymaps = {
|
|
||||||
init_selection = "gnn",
|
|
||||||
node_incremental = "grn",
|
|
||||||
scope_incremental = "grc",
|
|
||||||
node_decremental = "grm",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
indent = { enable = true },
|
|
||||||
|
|
||||||
textobjects = {
|
|
||||||
select = {
|
|
||||||
enable = true,
|
|
||||||
lookahead = true,
|
|
||||||
|
|
||||||
keymaps = {
|
|
||||||
|
|
||||||
-- You can use the capture groups defined in textobjects.scm
|
|
||||||
["af"] = "@function.outer",
|
|
||||||
["if"] = "@function.inner",
|
|
||||||
["ac"] = "@class.outer",
|
|
||||||
|
|
||||||
-- You can optionally set descriptions to the mappings (used in the desc parameter of
|
|
||||||
-- nvim_buf_set_keymap) which plugins like which-key display
|
|
||||||
["ic"] = { query = "@class.inner", desc = "Select inner part of a class region" },
|
|
||||||
|
|
||||||
-- You can also use captures from other query groups like `locals.scm`
|
|
||||||
["as"] = { query = "@scope", query_group = "locals", desc = "Select language scope" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
swap = {
|
|
||||||
enable = true,
|
|
||||||
swap_previous = { ["[."] = "@parameter.inner", },
|
|
||||||
swap_next = { ["]."] = "@parameter.inner", },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
refactor = {
|
|
||||||
highlight_definitions = {
|
|
||||||
enable = true,
|
|
||||||
-- Set to false if you have an `updatetime` of ~100.
|
|
||||||
clear_on_cursor_move = true,
|
|
||||||
},
|
|
||||||
highlight_current_scope = { enable = false },
|
|
||||||
smart_rename = {
|
|
||||||
enable = true,
|
|
||||||
-- Assign keymaps to false to disable them, e.g. `smart_rename = false`.
|
|
||||||
keymaps = {
|
|
||||||
smart_rename = "grr",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'nvim-treesitter/nvim-treesitter-textobjects',
|
|
||||||
'nvim-treesitter/nvim-treesitter-refactor',
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user