feat: add treesitter highlighting and indentation
tweak colorscheme to be usable add nvim-treesitter setup file disable native nvim indentation
This commit is contained in:
parent
9f56efa64a
commit
5529c37703
@ -21,3 +21,6 @@ require("lsp.tex") -- ./lua/lsp/python.lua
|
|||||||
|
|
||||||
-- auto complete
|
-- auto complete
|
||||||
require("plugin.compe") -- ./lua/plugin/compe.lua
|
require("plugin.compe") -- ./lua/plugin/compe.lua
|
||||||
|
|
||||||
|
-- treesitter
|
||||||
|
require("plugin.treesitter") -- ./lua/plugin/treesitter.lua
|
||||||
|
10
.config/nvim/lua/plugin/treesitter.lua
Normal file
10
.config/nvim/lua/plugin/treesitter.lua
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
require("nvim-treesitter.configs").setup {
|
||||||
|
ensure_installed = { "c", "lua", "python", "bash" },
|
||||||
|
ignore_install = { "javascript" },
|
||||||
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
indent = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
}
|
@ -53,7 +53,6 @@ b.softtabstop = -1
|
|||||||
b.expandtab = true
|
b.expandtab = true
|
||||||
b.shiftwidth = 0
|
b.shiftwidth = 0
|
||||||
o.backspace = "indent,eol,start"
|
o.backspace = "indent,eol,start"
|
||||||
o.cindent = true
|
|
||||||
|
|
||||||
-- augroups
|
-- augroups
|
||||||
utils.create_augroup({
|
utils.create_augroup({
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 2496359573a545ec644a42a8e91ee529ee9348da
|
Subproject commit 316b906bc745db0cc8779ae3f0d481a5d4a05bee
|
Reference in New Issue
Block a user