aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home/.config/nvim/lua/custom/plugins/ts.lua
diff options
context:
space:
mode:
authorLibravatar sommerfeld <[email protected]>2026-04-17 10:53:11 +0100
committerLibravatar sommerfeld <[email protected]>2026-04-17 10:53:11 +0100
commitfcab70e06325f123030a9442aef001707a603950 (patch)
tree2bd9c2bd5c731767653f3e2f06adeaa54119eeb5 /home/.config/nvim/lua/custom/plugins/ts.lua
parentbf282a6e1c16a2976a8478f1f6ef916bcf75e52c (diff)
downloaddotfiles-fcab70e06325f123030a9442aef001707a603950.tar.gz
dotfiles-fcab70e06325f123030a9442aef001707a603950.tar.bz2
dotfiles-fcab70e06325f123030a9442aef001707a603950.zip
refactor: flatten custom/plugins/ to plugins/
Rename lua/custom/plugins/ to lua/plugins/ following the standard lazy.nvim convention. The extra custom/ nesting added no value. Update import path in init.lua accordingly.
Diffstat (limited to 'home/.config/nvim/lua/custom/plugins/ts.lua')
-rw-r--r--home/.config/nvim/lua/custom/plugins/ts.lua153
1 files changed, 0 insertions, 153 deletions
diff --git a/home/.config/nvim/lua/custom/plugins/ts.lua b/home/.config/nvim/lua/custom/plugins/ts.lua
deleted file mode 100644
index 99c9688..0000000
--- a/home/.config/nvim/lua/custom/plugins/ts.lua
+++ /dev/null
@@ -1,153 +0,0 @@
-return {
- {
- "aaronik/treewalker.nvim",
- keys = {
- {
- "<a-k>",
- "<cmd>Treewalker Up<cr>",
- mode = { "n", "v" },
- silent = true,
- desc = "Moves up to the previous neighbor node",
- },
- {
- "<a-j>",
- "<cmd>Treewalker Down<cr>",
- mode = { "n", "v" },
- silent = true,
- desc = "Moves up to the next neighbor node",
- },
- {
- "<a-h>",
- "<cmd>Treewalker Left<cr>",
- mode = { "n", "v" },
- silent = true,
- desc = "Moves to the first ancestor node that's on a different line from the current node",
- },
- {
- "<a-l>",
- "<cmd>Treewalker Right<cr>",
- mode = { "n", "v" },
- silent = true,
- desc = "Moves to the next node down that's indented further than the current node",
- },
- {
- "<s-a-k>",
- "<cmd>Treewalker SwapUp<cr>",
- silent = true,
- desc = "Swaps the highest node on the line upwards in the document",
- },
- {
- "<s-a-j>",
- "<cmd>Treewalker SwapDown<cr>",
- silent = true,
- desc = "Swaps the biggest node on the line downward in the document",
- },
- {
- "<s-a-h>",
- "<cmd>Treewalker SwapLeft<cr>",
- silent = true,
- desc = "Swap the node under the cursor with its previous neighbor",
- },
- {
- "<s-a-l>",
- "<cmd>Treewalker SwapRight<cr>",
- silent = true,
- desc = "Swap the node under the cursor with its next neighbor",
- },
- },
- opts = {},
- },
- {
- "nvim-treesitter/nvim-treesitter",
- branch = "main",
- lazy = false,
- dependencies = {
- {
- "LiadOz/nvim-dap-repl-highlights",
- opts = {},
- },
- },
- build = ":TSUpdate",
- config = function()
- require("nvim-treesitter").install({
- "awk",
- "bash",
- "c",
- "cmake",
- "comment",
- "cpp",
- "css",
- "csv",
- "diff",
- "dockerfile",
- "dap_repl",
- "doxygen",
- "editorconfig",
- "fortran",
- "git_config",
- "git_rebase",
- "gitattributes",
- "gitcommit",
- "gitignore",
- "groovy",
- "gpg",
- "hlsplaylist",
- "html",
- "http",
- "ini",
- "javascript",
- "jq",
- "jsdoc",
- "json",
- "just",
- "llvm",
- "lua",
- "luadoc",
- "luap",
- "make",
- "markdown",
- "markdown_inline",
- "query",
- "passwd",
- "printf",
- "python",
- "regex",
- "readline",
- "requirements",
- "rust",
- "sql",
- "ssh_config",
- "strace",
- "sxhkdrc",
- "tablegen",
- "tmux",
- "todotxt",
- "toml",
- "typescript",
- "vim",
- "vimdoc",
- "xcompose",
- "xml",
- "xresources",
- "yaml",
- })
- end,
- },
- "RRethy/nvim-treesitter-endwise",
- { "nvim-treesitter/nvim-treesitter-context", opts = {} },
- {
- "JoosepAlviste/nvim-ts-context-commentstring",
- config = function()
- require("ts_context_commentstring").setup({
- enable_autocmd = false,
- })
- local get_option = vim.filetype.get_option
-
- vim.filetype.get_option = function(filetype, option)
- return option == "commentstring"
- and require("ts_context_commentstring.internal").calculate_commentstring()
- or get_option(filetype, option)
- end
- end,
- },
-}