summaryrefslogtreecommitdiffstats
path: root/.config/nvim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/after/plugin/treesitter.lua8
-rw-r--r--.config/nvim/lua/settings.lua3
2 files changed, 9 insertions, 2 deletions
diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua
index 7865930..bbe666f 100644
--- a/.config/nvim/after/plugin/treesitter.lua
+++ b/.config/nvim/after/plugin/treesitter.lua
@@ -1,6 +1,6 @@
require'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" (the five listed parsers should always be installed)
- ensure_installed = { "c", "cpp", "lua", "vim", "vimdoc", "query", "go", "rust" },
+ ensure_installed = { 'c', 'cpp', 'lua', 'vim', 'vimdoc', 'query', 'go', 'rust', 'yaml' },
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
@@ -18,4 +18,10 @@ require'nvim-treesitter.configs'.setup {
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = false,
},
+ incremental_selection = {
+ enable = true,
+ },
+ indent = {
+ enable = true,
+ },
}
diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua
index a7374ca..2079677 100644
--- a/.config/nvim/lua/settings.lua
+++ b/.config/nvim/lua/settings.lua
@@ -13,7 +13,8 @@ set shortmess+=c
vim.opt.completeopt = 'menuone,noinsert,noselect,preview'
vim.opt.cursorline = true
vim.opt.encoding = 'utf-8'
-vim.opt.go = 'a'
+-- vim.opt.go = 'a'
+vim.opt.termguicolors = false
vim.opt.hidden = true
vim.opt.makeprg = 'make'
vim.opt.mouse = 'a'