fix: treesitter errors
This commit is contained in:
@@ -10,7 +10,7 @@ require("ward.lazy")
|
||||
|
||||
--$ Neovide configuration if used
|
||||
if vim.g.neovide then
|
||||
vim.g.neovide_opacity = 0.75
|
||||
vim.g.neovide_opacity = 0.85
|
||||
vim.g.neovide_window_blurred = true
|
||||
-- vim.o.guifont = "Source Code Pro:h12"
|
||||
|
||||
|
||||
@@ -19,6 +19,10 @@ return {
|
||||
separator = true,
|
||||
},
|
||||
},
|
||||
-- separator_style = "slant",
|
||||
-- indicator = {
|
||||
-- style = "underline",
|
||||
-- },
|
||||
diagnostics = "nvim_lsp",
|
||||
diagnostics_indicator = function(count, level, diagnostics_dict, context)
|
||||
local s = " "
|
||||
|
||||
@@ -3,18 +3,27 @@
|
||||
--# :help treesitter
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
branch = "main",
|
||||
lazy = false,
|
||||
build = ":TSUpdate",
|
||||
|
||||
config = function()
|
||||
local configs = require("nvim-treesitter.configs")
|
||||
|
||||
configs.setup({
|
||||
ensure_installed = {
|
||||
"c", "lua", "vim", "vimdoc", "javascript", "html", "python", "typescript"
|
||||
},
|
||||
sync_install = false,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
})
|
||||
end
|
||||
-- config = function()
|
||||
-- local configs = require("nvim-treesitter.configs")
|
||||
--
|
||||
-- configs.setup({
|
||||
-- ensure_installed = {
|
||||
-- "c",
|
||||
-- "lua",
|
||||
-- "vim",
|
||||
-- "vimdoc",
|
||||
-- "javascript",
|
||||
-- "html",
|
||||
-- "python",
|
||||
-- "typescript",
|
||||
-- },
|
||||
-- sync_install = false,
|
||||
-- highlight = { enable = true },
|
||||
-- indent = { enable = true },
|
||||
-- })
|
||||
-- end,
|
||||
}
|
||||
|
||||
@@ -35,5 +35,5 @@ end
|
||||
LineNumberColors()
|
||||
|
||||
-- Set spell checker
|
||||
vim.opt.spell = true
|
||||
-- vim.opt.spell = true
|
||||
vim.opt.spelllang = { 'en_gb', 'nl' }
|
||||
|
||||
Reference in New Issue
Block a user