1
Fork 0

feat: treesitter plugin for neovim

This commit is contained in:
Matei Adriel 2022-02-01 12:02:02 +02:00
parent 9b1defa428
commit 85cc99140c
4 changed files with 41 additions and 22 deletions

View file

@ -27,9 +27,7 @@ opt.wrap = false -- Disable line wrap
opt.wildmode = {'list', 'longest'} -- Command-line completion mode opt.wildmode = {'list', 'longest'} -- Command-line completion mode
-- Set theme -- Set theme
require('github-theme').setup({ require('github-theme').setup({theme_style = "light", dark_float = true})
theme_style = "light"
})
-- Import my other files -- Import my other files
require('my.keymaps').setup() require('my.keymaps').setup()

View file

@ -3,6 +3,7 @@ local M = {}
function M.setup() function M.setup()
require("my.plugins.lspconfig").setup() require("my.plugins.lspconfig").setup()
require("my.plugins.fzf-lua").setup() require("my.plugins.fzf-lua").setup()
require("my.plugins.treesitter").setup()
-- Other unconfigured plugins -- Other unconfigured plugins
require('nvim-autopairs').setup() require('nvim-autopairs').setup()

View file

@ -0,0 +1,19 @@
local M = {}
function M.setup()
require'nvim-treesitter.configs'.setup {
ensure_installed = "maintained",
sync_install = false,
highlight = {
enable = true,
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- 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
}
}
end
return M

View file

@ -39,6 +39,7 @@ in
fzf-lua # fuzzy search for say opening files fzf-lua # fuzzy search for say opening files
purescript-vim # purescript syntax highlighting purescript-vim # purescript syntax highlighting
nvim-comment # allows toggling line-comments nvim-comment # allows toggling line-comments
nvim-treesitter # use treesitter for syntax highlighting
]; ];
}; };
} }