Add LSP stuff

This commit is contained in:
William McVicar
2024-01-08 00:07:57 +01:00
parent 37bd8c801e
commit 0643da425f
5 changed files with 94 additions and 24 deletions

View File

@@ -1,20 +1,20 @@
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local install = require("nvim-treesitter.install")
local configs = require("nvim-treesitter.configs")
-- "nvim-treesitter/nvim-treesitter",
-- build = ":TSUpdate",
-- config = function()
-- local install = require("nvim-treesitter.install")
-- local configs = require("nvim-treesitter.configs")
install = {
compilers = { clang },
prefer_git = false,
}
-- install = {
-- compilers = { clang },
-- prefer_git = false,
-- }
configs.setup({
ensure_installed = { "c", "cpp", "lua", "vim", "vimdoc", "cmake", "query" },
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end
-- configs.setup({
-- ensure_installed = { "c", "cpp", "lua", "vim", "vimdoc", "cmake", "query" },
-- sync_install = false,
-- highlight = { enable = true },
-- indent = { enable = true },
-- })
-- end
}