mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Merge commit 'f4858d42a8' as 'config/nvim'
This commit is contained in:
commit
a6d1f45fd6
36 changed files with 906 additions and 0 deletions
20
config/nvim/lua/plugin/treesitter.lua
Normal file
20
config/nvim/lua/plugin/treesitter.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
local M = {}
|
||||
|
||||
function M.setup()
|
||||
require("nvim-treesitter.configs").setup {
|
||||
ensure_installed = { "lua", "go", "gomod" },
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true, disable = { "python", "yml" } },
|
||||
autotag = { enable = true },
|
||||
context_commentstring = { enable = true },
|
||||
rainbow = {
|
||||
enable = false,
|
||||
extended_mode = true,
|
||||
max_file_lines = 500,
|
||||
},
|
||||
}
|
||||
|
||||
local parser_configs = require("nvim-treesitter.parsers").get_parser_configs()
|
||||
end
|
||||
|
||||
return M
|
||||
Loading…
Add table
Add a link
Reference in a new issue