fix LSPs, add c# support
This commit is contained in:
+9
-3
@@ -19,7 +19,7 @@ return {
|
||||
branch = "main",
|
||||
build = ":TSUpdate",
|
||||
config = function()
|
||||
local langs = { "clojure", "fennel", "lua", "vim", "vimdoc", "query" }
|
||||
local langs = { "clojure", "fennel", "lua", "vim", "vimdoc", "query", "c_sharp", "html" }
|
||||
|
||||
-- Install parsers asynchronously on first load
|
||||
vim.schedule(function()
|
||||
@@ -32,16 +32,22 @@ return {
|
||||
-- Enable treesitter highlighting for supported filetypes
|
||||
-- This is required for nvim-paredit to work (needs vim.treesitter.get_node())
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "clojure", "fennel", "lua", "vim", "query", "scheme", "lisp" },
|
||||
pattern = { "clojure", "fennel", "lua", "vim", "query", "scheme", "lisp", "cs", "razor", "html" },
|
||||
callback = function()
|
||||
pcall(vim.treesitter.start)
|
||||
end,
|
||||
})
|
||||
|
||||
-- Filetype detection for Blazor/Razor files
|
||||
vim.filetype.add({ extension = { razor = "razor" } })
|
||||
|
||||
-- Use html parser for razor files (no razor parser exists; LSP covers C# parts)
|
||||
vim.treesitter.language.register("html", "razor")
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
tag = "0.1.8",
|
||||
branch = "master",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
keys = {
|
||||
{ "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find files" },
|
||||
|
||||
Reference in New Issue
Block a user