mirror of
https://github.com/boxpositron/absolute-vim.git
synced 2026-02-28 11:40:36 +00:00
feat(lua): add configuration files for catppuccino theme, cheatsheet, comment, conform, dap, flutter-tools, gitignore, gitsigns, highlight-colors, image, incline, and indent-blank-line plugins.
feat(lsp-config.lua): Add configurations for various language servers and setup custom key mappings and settings for improved development experience. feat(lualine.lua, mason.lua, mini-diff.lua, mini.lua, notify.lua, nvim-bqf.lua, nvim-cmp.lua, nvim-silicon.lua, nvim-surround.lua): Add new Lua files and configurations for lualine theme, mason setup, mini-diff, mini map integrations, notify setup, nvim-bqf, nvim-cmp autocompletion, nvim-silicon screenshot, and nvim-surround setup. feat(nvim-tree.lua): add custom configurations for Nvim Tree plugin feat(nvim-treesitter-context.lua): implement Treesitter Context plugin setup feat(nvim-treesitter.lua): configure Nvim Treesitter with specific parsers and features feat(poet-v.lua): set up Poet-V plugin with custom settings feat(smear-cursor.lua): integrate Smear Cursor plugin with defined options feat(tailwind-sorter.lua): initialize Tailwind Sorter plugin with save patterns and settings feat(telescope.lua): add custom settings and extensions to improve Telescope functionality feat(venv-selector.lua): add venv-selector setup and key mappings for VenvSelector and VenvSelectCached to enhance venv management.
This commit is contained in:
71
lua/absolute/after/nvim-treesitter.lua
Normal file
71
lua/absolute/after/nvim-treesitter.lua
Normal file
@@ -0,0 +1,71 @@
|
||||
require("nvim-treesitter.configs").setup({
|
||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
||||
ensure_installed = {
|
||||
"rust",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"python",
|
||||
"proto",
|
||||
"c",
|
||||
"lua",
|
||||
"vim",
|
||||
"vimdoc",
|
||||
"query",
|
||||
"markdown_inline",
|
||||
"markdown",
|
||||
},
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
||||
-- Automatically install missing parsers when entering buffer
|
||||
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
||||
auto_install = true,
|
||||
|
||||
---- If you need to change the installation directory of the parsers (see -> Advanced Setup)
|
||||
-- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")!
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
||||
-- Instead of true it can also be a list of languages
|
||||
additional_vim_regex_highlighting = false,
|
||||
disable = { "php" },
|
||||
},
|
||||
textobjects = {
|
||||
move = {
|
||||
enable = true,
|
||||
set_jumps = false, -- you can change this if you want.
|
||||
goto_next_start = {
|
||||
--- ... other keymaps
|
||||
["]b"] = { query = "@code_cell.inner", desc = "next code block" },
|
||||
},
|
||||
goto_previous_start = {
|
||||
--- ... other keymaps
|
||||
["[b"] = { query = "@code_cell.inner", desc = "previous code block" },
|
||||
},
|
||||
},
|
||||
select = {
|
||||
enable = true,
|
||||
lookahead = true, -- you can change this if you want
|
||||
keymaps = {
|
||||
--- ... other keymaps
|
||||
["ib"] = { query = "@code_cell.inner", desc = "in block" },
|
||||
["ab"] = { query = "@code_cell.outer", desc = "around block" },
|
||||
},
|
||||
},
|
||||
swap = { -- Swap only works with code blocks that are under the same
|
||||
-- markdown header
|
||||
enable = true,
|
||||
swap_next = {
|
||||
--- ... other keymap
|
||||
["<leader>sbl"] = "@code_cell.outer",
|
||||
},
|
||||
swap_previous = {
|
||||
--- ... other keymap
|
||||
["<leader>sbh"] = "@code_cell.outer",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user