nvim: init/treesitter: Enable bundled parsers
Now that neovim bundles parsers and highlight queries for Lua, Vimscript and C by default, enable the bundled ones. We can drop the entries from languages enabled via nvim-treesitter. See https://github.com/neovim/neovim/issues/14090#issuecomment-1237820552
This commit is contained in:
parent
05c27960f7
commit
7c8841431a
2 changed files with 4 additions and 1 deletions
|
@ -90,6 +90,9 @@ vim.g.tmux_navigator_no_mappings = 1
|
|||
-- Write the current buffer, but only if changed before navigating from Vim to tmux pane
|
||||
vim.g.tmux_navigator_save_on_switch = 1
|
||||
|
||||
-- Enable bundled TS parsers
|
||||
vim.g.ts_highlight_lua = true
|
||||
|
||||
-- We do this to prevent the loading of the system fzf.vim plugin. This is
|
||||
-- present at least on Arch/Manjaro
|
||||
vim.cmd.set{ args = { 'rtp-=/usr/share/vim/vimfiles' } }
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
-- https://github.com/nvim-treesitter/nvim-treesitter-textobjects/issues/100.
|
||||
require'nvim-treesitter-textobjects'
|
||||
|
||||
local ts_langs = { "bash", "c", "cpp", "fish", "go", "haskell", "html", "java", "javascript", "jsdoc", "json", "lua", "markdown", "nix", "python", "query", "rust", "teal", "toml", "tsx", "typescript", "verilog", "vim" }
|
||||
local ts_langs = { "bash", "cpp", "fish", "go", "haskell", "html", "java", "javascript", "jsdoc", "json", "markdown", "nix", "python", "query", "rust", "teal", "toml", "tsx", "typescript", "verilog" }
|
||||
|
||||
require'nvim-treesitter.install'.compilers = { "gcc" }
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
|
|
Loading…
Reference in a new issue