feat: move to new treesitter.
This commit is contained in:
parent
84168cc231
commit
7c2b42d916
14 changed files with 19 additions and 26 deletions
|
|
@ -16,6 +16,9 @@ vim.lsp.config("*", {
|
|||
root_markers = { '.git' },
|
||||
})
|
||||
|
||||
-- fix annoying lua lsp errors
|
||||
require("lazydev").setup()
|
||||
|
||||
-- enable specific language servers
|
||||
vim.lsp.enable({
|
||||
"nixd",
|
||||
|
|
@ -33,6 +36,3 @@ vim.lsp.enable({
|
|||
|
||||
-- diagnostic settings
|
||||
vim.diagnostic.config({ virtual_text = true })
|
||||
|
||||
-- fix annoying lua lsp errors
|
||||
require("lazydev").setup()
|
||||
|
|
|
|||
|
|
@ -1,28 +1,10 @@
|
|||
vim.pack.add({
|
||||
{ src = "https://github.com/nvim-treesitter/nvim-treesitter", name = "nvim-treesitter" },
|
||||
{ src = "https://github.com/nvim-treesitter/nvim-treesitter" },
|
||||
})
|
||||
---@diagnostic disable: missing-fields
|
||||
require'nvim-treesitter'.setup {
|
||||
-- ensure_installed = { "go", "nix" },
|
||||
require 'nvim-treesitter'.setup {}
|
||||
|
||||
auto_install = true,
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
|
||||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = "<Leader>ss",
|
||||
node_incremental = "<Leader>si",
|
||||
scope_incremental = "<Leader>sc",
|
||||
node_decremental = "<Leader>sd",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
require'nvim-treesitter'.install { 'go', 'nix'}
|
||||
require 'nvim-treesitter'.install { 'go', 'nix', 'lua', 'json', 'html', 'markdown_inline', 'python', 'bash', 'zsh', 'just', 'yaml' }
|
||||
|
||||
-- run tsupdate when updating nvim-treesitter
|
||||
vim.api.nvim_create_autocmd('PackChanged', {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue