Using treesitter again, added python to treesitter.
This commit is contained in:
parent
48eb0d8d60
commit
3aa91aaa71
37
init.lua
37
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,
|
||||
|
|
Loading…
Reference in New Issue