feat: treesitter plugin for neovim
This commit is contained in:
parent
9b1defa428
commit
85cc99140c
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
19
dotfiles/neovim/lua/my/plugins/treesitter.lua
Normal file
19
dotfiles/neovim/lua/my/plugins/treesitter.lua
Normal 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
|
|
@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue