Update nvim configs
This commit is contained in:
parent
36ebc52eee
commit
3078d83c57
4 changed files with 81 additions and 23 deletions
7
nvim/lua/plugins/lsp/lspconfig.lua
Normal file
7
nvim/lua/plugins/lsp/lspconfig.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
require("lspconfig").pyright.setup({
|
||||
settings = {
|
||||
python = {
|
||||
pythonPath = "/Users/tiffanywhite/.pyenv/versions/3.10.4/bin/python",
|
||||
},
|
||||
},
|
||||
})
|
50
nvim/lua/plugins/treesitter.lua
Normal file
50
nvim/lua/plugins/treesitter.lua
Normal file
|
@ -0,0 +1,50 @@
|
|||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
dependencies = {
|
||||
"windwp/nvim-ts-autotag",
|
||||
},
|
||||
config = function()
|
||||
local treesitter = require("nvim-treesitter.configs")
|
||||
treesitter.setup({
|
||||
highlight = {
|
||||
enable = true,
|
||||
},
|
||||
-- enable indentation
|
||||
indent = { enable = true },
|
||||
-- enable autotagging (w/ nvim-ts-autotag plugin)
|
||||
autotag = {
|
||||
enable = true,
|
||||
},
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
"html",
|
||||
"javascript",
|
||||
"json",
|
||||
"lua",
|
||||
"markdown",
|
||||
"markdown_inline",
|
||||
"python",
|
||||
"go",
|
||||
"gotmpl",
|
||||
"cpp",
|
||||
"jinja",
|
||||
"jinja_inline",
|
||||
"hyprlang",
|
||||
"liquid",
|
||||
"dockerfile",
|
||||
"astro",
|
||||
"regex",
|
||||
"query",
|
||||
"tsx",
|
||||
"typescript",
|
||||
"vim",
|
||||
"yaml",
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue