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:
David JULIEN 2021-05-24 20:03:39 +02:00
parent 9f56efa64a
commit 5529c37703
4 changed files with 14 additions and 2 deletions

View File

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

View 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,
},
}

View File

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