diff --git a/init.lua b/init.lua index b381aea..558676c 100644 --- a/init.lua +++ b/init.lua @@ -11,6 +11,7 @@ if not vim.loop.fs_stat(lazypath) then end vim.opt.rtp:prepend(lazypath) require("lazy").setup({ + "nvim-treesitter/nvim-treesitter", "morhetz/gruvbox", "neovim/nvim-lspconfig", { "nvim-telescope/telescope.nvim", dependencies = {"nvim-lua/plenary.nvim"} }, @@ -34,24 +35,24 @@ vim.opt.expandtab = true vim.opt.smartindent = true vim.opt.wrap = false ---require('nvim-treesitter.configs').setup { --- ensure_installed = { "c", "cpp", "lua", "zig", "go", "sql" }, --- sync_install = false, --- auto_install = false, --- highlight = { --- enable = true, --- additional_vim_regex_highlighting = false, --- }, --- incremental_selection = { --- }, --- indent = { --- enable = true, --- }, --- playground = { --- enabled = true, --- persist_queries = false, --- } ---} +require('nvim-treesitter.configs').setup { + ensure_installed = { "c", "cpp", "lua", "go", "python", "sql" }, + sync_install = false, + auto_install = false, + highlight = { + enable = true, + additional_vim_regex_highlighting = false, + }, + incremental_selection = { + }, + indent = { + enable = true, + }, + playground = { + enabled = true, + persist_queries = false, + } +} --require('treesitter-context').setup { -- enable = true, -- max_lines = 0,