Using treesitter again, added python to treesitter.

This commit is contained in:
Tyler White 2024-04-20 10:59:01 -07:00
parent 48eb0d8d60
commit 3aa91aaa71
1 changed files with 19 additions and 18 deletions

View File

@ -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,