Added initial nvim config
This commit is contained in:
parent
406d73f803
commit
d31faf2dbf
14 changed files with 577 additions and 0 deletions
31
.config/nvim/plugin/treesitter.lua
Normal file
31
.config/nvim/plugin/treesitter.lua
Normal file
|
@ -0,0 +1,31 @@
|
|||
local status, ts = pcall(require, "nvim-treesitter.configs")
|
||||
if (not status) then return end
|
||||
|
||||
ts.setup {
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable = {},
|
||||
},
|
||||
indent = {
|
||||
enable = true,
|
||||
disable = {},
|
||||
},
|
||||
ensure_installed = {
|
||||
"markdown",
|
||||
"markdown_inline",
|
||||
"tsx",
|
||||
"json",
|
||||
"yaml",
|
||||
"css",
|
||||
"scss",
|
||||
"html",
|
||||
"lua",
|
||||
"vim",
|
||||
},
|
||||
autotag = {
|
||||
enable = true,
|
||||
},
|
||||
}
|
||||
|
||||
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
|
||||
parser_config.tsx.filetype_to_parsername = { "javascript", "typescript.tsx" }
|
Loading…
Add table
Add a link
Reference in a new issue