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
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
"morhetz/gruvbox",
|
"morhetz/gruvbox",
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
{ "nvim-telescope/telescope.nvim", dependencies = {"nvim-lua/plenary.nvim"} },
|
{ "nvim-telescope/telescope.nvim", dependencies = {"nvim-lua/plenary.nvim"} },
|
||||||
|
@ -34,24 +35,24 @@ vim.opt.expandtab = true
|
||||||
vim.opt.smartindent = true
|
vim.opt.smartindent = true
|
||||||
|
|
||||||
vim.opt.wrap = false
|
vim.opt.wrap = false
|
||||||
--require('nvim-treesitter.configs').setup {
|
require('nvim-treesitter.configs').setup {
|
||||||
-- ensure_installed = { "c", "cpp", "lua", "zig", "go", "sql" },
|
ensure_installed = { "c", "cpp", "lua", "go", "python", "sql" },
|
||||||
-- sync_install = false,
|
sync_install = false,
|
||||||
-- auto_install = false,
|
auto_install = false,
|
||||||
-- highlight = {
|
highlight = {
|
||||||
-- enable = true,
|
enable = true,
|
||||||
-- additional_vim_regex_highlighting = false,
|
additional_vim_regex_highlighting = false,
|
||||||
-- },
|
},
|
||||||
-- incremental_selection = {
|
incremental_selection = {
|
||||||
-- },
|
},
|
||||||
-- indent = {
|
indent = {
|
||||||
-- enable = true,
|
enable = true,
|
||||||
-- },
|
},
|
||||||
-- playground = {
|
playground = {
|
||||||
-- enabled = true,
|
enabled = true,
|
||||||
-- persist_queries = false,
|
persist_queries = false,
|
||||||
-- }
|
}
|
||||||
--}
|
}
|
||||||
--require('treesitter-context').setup {
|
--require('treesitter-context').setup {
|
||||||
-- enable = true,
|
-- enable = true,
|
||||||
-- max_lines = 0,
|
-- max_lines = 0,
|
||||||
|
|
Loading…
Reference in New Issue