damn treesitter
This commit is contained in:
parent
5c42645b30
commit
f0c7bc619a
@ -125,27 +125,20 @@ return require('packer').startup(function(use)
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
require("nvim-treesitter.configs").setup({
|
||||||
require('nvim-treesitter.configs').setup {
|
highlight = { enable = false, disable = { "lua" } },
|
||||||
ensure_installed = {
|
indent = { enable = true },
|
||||||
"bash", "c", "c_sharp", "cmake", "cpp", "css", "diff", "dockerfile", "fish", "git_rebase",
|
refactor = { highlight_definitions = { enable = true } },
|
||||||
"gitattributes", "gitcommit", "gitignore", "go", "gomod", "html", "htmldjango", "http", "ini",
|
incremental_selection = { enable = true },
|
||||||
"java", "javascript", "jq", "jsdoc", "json", "json5", "jsonc", "llvm", "lua", "m68k", "make",
|
matchup = { enable = true },
|
||||||
"markdown", "markdown_inline", "nix", "python", "rst", "ruby", "rust", "scss", "sql", "terraform",
|
textsubjects = {
|
||||||
"toml", "tsx", "typescript", "vim", "vue", "yaml"
|
enable = true,
|
||||||
},
|
prev_selection = ",",
|
||||||
auto_install = true,
|
keymaps = {
|
||||||
highlight = {
|
["."] = "textsubjects-smart",
|
||||||
enable = true,
|
},
|
||||||
additional_vim_regex_highlighting=false,
|
},
|
||||||
},
|
})
|
||||||
ident = { enable = true },
|
|
||||||
rainbow = {
|
|
||||||
enable = true,
|
|
||||||
extended_mode = true,
|
|
||||||
max_file_lines = nil,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-- KEYS
|
-- KEYS
|
||||||
|
@ -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