fix: treesitter errors
This commit is contained in:
@@ -10,7 +10,7 @@ require("ward.lazy")
|
|||||||
|
|
||||||
--$ Neovide configuration if used
|
--$ Neovide configuration if used
|
||||||
if vim.g.neovide then
|
if vim.g.neovide then
|
||||||
vim.g.neovide_opacity = 0.75
|
vim.g.neovide_opacity = 0.85
|
||||||
vim.g.neovide_window_blurred = true
|
vim.g.neovide_window_blurred = true
|
||||||
-- vim.o.guifont = "Source Code Pro:h12"
|
-- vim.o.guifont = "Source Code Pro:h12"
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ return {
|
|||||||
config = function()
|
config = function()
|
||||||
require("bufferline").setup({
|
require("bufferline").setup({
|
||||||
options = {
|
options = {
|
||||||
right_mouse_command = "BufferLineTogglePin",
|
right_mouse_command = "BufferLineTogglePin",
|
||||||
buffer_close_icon = "",
|
buffer_close_icon = "",
|
||||||
offsets = {
|
offsets = {
|
||||||
{
|
{
|
||||||
@@ -19,6 +19,10 @@ return {
|
|||||||
separator = true,
|
separator = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
-- separator_style = "slant",
|
||||||
|
-- indicator = {
|
||||||
|
-- style = "underline",
|
||||||
|
-- },
|
||||||
diagnostics = "nvim_lsp",
|
diagnostics = "nvim_lsp",
|
||||||
diagnostics_indicator = function(count, level, diagnostics_dict, context)
|
diagnostics_indicator = function(count, level, diagnostics_dict, context)
|
||||||
local s = " "
|
local s = " "
|
||||||
@@ -39,11 +43,11 @@ return {
|
|||||||
{ "<leader>bst", "<cmd>BufferLineSortByTabs<Cr>", desc = "Sort by tabs" },
|
{ "<leader>bst", "<cmd>BufferLineSortByTabs<Cr>", desc = "Sort by tabs" },
|
||||||
{ "<leader>bsh", "<cmd>BufferLineMovePrev<Cr>", desc = "Sort by tabs" },
|
{ "<leader>bsh", "<cmd>BufferLineMovePrev<Cr>", desc = "Sort by tabs" },
|
||||||
{ "<leader>bsl", "<cmd>BufferLineMoveNext<Cr>", desc = "Sort by tabs" },
|
{ "<leader>bsl", "<cmd>BufferLineMoveNext<Cr>", desc = "Sort by tabs" },
|
||||||
{ "[[", "<cmd>BufferLineCyclePrev<Cr>", desc = "Previous buffer" },
|
{ "[[", "<cmd>BufferLineCyclePrev<Cr>", desc = "Previous buffer" },
|
||||||
{ "]]", "<cmd>BufferLineCycleNext<Cr>", desc = "Next buffer" },
|
{ "]]", "<cmd>BufferLineCycleNext<Cr>", desc = "Next buffer" },
|
||||||
{ "<leader>bb", "<cmd>BufferLineCyclePrev<Cr>", desc = "Previous buffer" },
|
{ "<leader>bb", "<cmd>BufferLineCyclePrev<Cr>", desc = "Previous buffer" },
|
||||||
{ "<leader>bn", "<cmd>BufferLineCycleNext<Cr>", desc = "Next buffer" },
|
{ "<leader>bn", "<cmd>BufferLineCycleNext<Cr>", desc = "Next buffer" },
|
||||||
{ "<leader>n", "<cmd>BufferLineCycleNext<Cr>", desc = "Next buffer" },
|
{ "<leader>n", "<cmd>BufferLineCycleNext<Cr>", desc = "Next buffer" },
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,19 +2,28 @@
|
|||||||
--$ URL: https://github.com/nvim-treesitter/nvim-treesitter
|
--$ URL: https://github.com/nvim-treesitter/nvim-treesitter
|
||||||
--# :help treesitter
|
--# :help treesitter
|
||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
build = ":TSUpdate",
|
branch = "main",
|
||||||
|
lazy = false,
|
||||||
|
build = ":TSUpdate",
|
||||||
|
|
||||||
config = function()
|
-- config = function()
|
||||||
local configs = require("nvim-treesitter.configs")
|
-- local configs = require("nvim-treesitter.configs")
|
||||||
|
--
|
||||||
configs.setup({
|
-- configs.setup({
|
||||||
ensure_installed = {
|
-- ensure_installed = {
|
||||||
"c", "lua", "vim", "vimdoc", "javascript", "html", "python", "typescript"
|
-- "c",
|
||||||
},
|
-- "lua",
|
||||||
sync_install = false,
|
-- "vim",
|
||||||
highlight = { enable = true },
|
-- "vimdoc",
|
||||||
indent = { enable = true },
|
-- "javascript",
|
||||||
})
|
-- "html",
|
||||||
end
|
-- "python",
|
||||||
|
-- "typescript",
|
||||||
|
-- },
|
||||||
|
-- sync_install = false,
|
||||||
|
-- highlight = { enable = true },
|
||||||
|
-- indent = { enable = true },
|
||||||
|
-- })
|
||||||
|
-- end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,5 +35,5 @@ end
|
|||||||
LineNumberColors()
|
LineNumberColors()
|
||||||
|
|
||||||
-- Set spell checker
|
-- Set spell checker
|
||||||
vim.opt.spell = true
|
-- vim.opt.spell = true
|
||||||
vim.opt.spelllang = { 'en_gb', 'nl' }
|
vim.opt.spelllang = { 'en_gb', 'nl' }
|
||||||
|
|||||||
Reference in New Issue
Block a user