treesitter: indent config
This commit is contained in:
parent
0d7e357c3f
commit
301dab336e
5 changed files with 110 additions and 97 deletions
|
@ -1,6 +1,11 @@
|
||||||
require("nvim-treesitter.configs").setup {
|
require("nvim-treesitter.configs").setup {
|
||||||
ensure_installed = "maintained",
|
ensure_installed = "maintained",
|
||||||
highlight = {enable = true},
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
use_languagetree = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
playground = {
|
playground = {
|
||||||
enable = true,
|
enable = true,
|
||||||
disable = {},
|
disable = {},
|
||||||
|
|
|
@ -21,9 +21,9 @@ vim.o.listchars = 'extends:›,precedes:‹,nbsp:·,tab:→ ,trail:·'
|
||||||
vim.wo.foldlevel = 99
|
vim.wo.foldlevel = 99
|
||||||
vim.wo.linebreak = true
|
vim.wo.linebreak = true
|
||||||
vim.wo.list = true
|
vim.wo.list = true
|
||||||
vim.o.shiftwidth = 4
|
vim.o.shiftwidth = 2
|
||||||
vim.o.tabstop = 4
|
vim.o.tabstop = 2
|
||||||
vim.o.softtabstop = 4
|
vim.o.softtabstop = 2
|
||||||
|
|
||||||
--- Search
|
--- Search
|
||||||
vim.cmd('set path+=**')
|
vim.cmd('set path+=**')
|
||||||
|
|
|
@ -42,6 +42,7 @@ return require('packer').startup(function()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
utils.mapx("is", "<C-space>", "v:lua.complete('<C-n>', '<Tab>')")
|
||||||
utils.mapx("is", "<Tab>", "v:lua.complete('<C-n>', '<Tab>')")
|
utils.mapx("is", "<Tab>", "v:lua.complete('<C-n>', '<Tab>')")
|
||||||
utils.mapx("is", "<S-Tab>", "v:lua.complete('<C-p>', '<C-h>')")
|
utils.mapx("is", "<S-Tab>", "v:lua.complete('<C-p>', '<C-h>')")
|
||||||
utils.mapx("x", "<CR>", "compe:#confirm('<CR')")
|
utils.mapx("x", "<CR>", "compe:#confirm('<CR')")
|
||||||
|
@ -57,6 +58,13 @@ return require('packer').startup(function()
|
||||||
config = function()
|
config = function()
|
||||||
require('gitsigns').setup {
|
require('gitsigns').setup {
|
||||||
numhl = true,
|
numhl = true,
|
||||||
|
signs = {
|
||||||
|
add = {hl = 'GitSignsAdd' , text = '▌', numhl='GitSignsAddNr' , linehl='GitSignsAddLn'},
|
||||||
|
change = {hl = 'GitSignsChange', text = '▌', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
|
||||||
|
delete = {hl = 'GitSignsDelete', text = '▖', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
|
||||||
|
topdelete = {hl = 'GitSignsDelete', text = '▘', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
|
||||||
|
changedelete = {hl = 'GitSignsChange', text = '~', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[core]
|
[core]
|
||||||
excludesfile = "~/.gitignore"
|
excludesfile = "~/.gitignore"
|
||||||
pager = delta --line-numbers -s
|
pager = delta --line-numbers
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
useConfigOnly = true
|
useConfigOnly = true
|
||||||
|
|
Loading…
Reference in a new issue