damn treesitter
This commit is contained in:
parent
5c42645b30
commit
f0c7bc619a
@ -125,28 +125,21 @@ return require('packer').startup(function(use)
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
require("nvim-treesitter.configs").setup({
|
||||||
|
highlight = { enable = false, disable = { "lua" } },
|
||||||
|
indent = { enable = true },
|
||||||
|
refactor = { highlight_definitions = { enable = true } },
|
||||||
|
incremental_selection = { enable = true },
|
||||||
|
matchup = { enable = true },
|
||||||
|
textsubjects = {
|
||||||
|
enable = true,
|
||||||
|
prev_selection = ",",
|
||||||
|
keymaps = {
|
||||||
|
["."] = "textsubjects-smart",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
require('nvim-treesitter.configs').setup {
|
|
||||||
ensure_installed = {
|
|
||||||
"bash", "c", "c_sharp", "cmake", "cpp", "css", "diff", "dockerfile", "fish", "git_rebase",
|
|
||||||
"gitattributes", "gitcommit", "gitignore", "go", "gomod", "html", "htmldjango", "http", "ini",
|
|
||||||
"java", "javascript", "jq", "jsdoc", "json", "json5", "jsonc", "llvm", "lua", "m68k", "make",
|
|
||||||
"markdown", "markdown_inline", "nix", "python", "rst", "ruby", "rust", "scss", "sql", "terraform",
|
|
||||||
"toml", "tsx", "typescript", "vim", "vue", "yaml"
|
|
||||||
},
|
|
||||||
auto_install = true,
|
|
||||||
highlight = {
|
|
||||||
enable = true,
|
|
||||||
additional_vim_regex_highlighting=false,
|
|
||||||
},
|
|
||||||
ident = { enable = true },
|
|
||||||
rainbow = {
|
|
||||||
enable = true,
|
|
||||||
extended_mode = true,
|
|
||||||
max_file_lines = nil,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-- KEYS
|
-- KEYS
|
||||||
-- Vimspector
|
-- Vimspector
|
||||||
|
@ -68,5 +68,8 @@ return function(use)
|
|||||||
|
|
||||||
|
|
||||||
use({'puremourning/vimspector'})
|
use({'puremourning/vimspector'})
|
||||||
|
use({'nvim-treesitter/nvim-treesitter-refactor'})
|
||||||
|
use({'RRethy/nvim-treesitter-textsubjects'})
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -27,13 +27,16 @@
|
|||||||
# # Inject tree-sitters, since they're annoying to maintain with sideloading
|
# # Inject tree-sitters, since they're annoying to maintain with sideloading
|
||||||
# (nvim-treesitter.withPlugins (plugins: pkgs.tree-sitter.allGrammars))
|
# (nvim-treesitter.withPlugins (plugins: pkgs.tree-sitter.allGrammars))
|
||||||
#];
|
#];
|
||||||
|
plugins = [
|
||||||
|
pkgs.vimPlugins.nvim-treesitter.withAllGrammars
|
||||||
|
];
|
||||||
# We used to manage our own init.lua but now we want the home-manager
|
# We used to manage our own init.lua but now we want the home-manager
|
||||||
# managed init.vim to load our init.lua which makes this a little dirty.
|
# managed init.vim to load our init.lua which makes this a little dirty.
|
||||||
# extraConfig = ''
|
extraConfig = ''
|
||||||
# lua << EOF
|
lua << EOF
|
||||||
# ${builtins.readFile ../../home/config/nvim/init.lua}
|
${builtins.readFile ../../home/config/nvim/init.lua}
|
||||||
# EOF
|
EOF
|
||||||
# '';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
|
Loading…
Reference in New Issue
Block a user