fix: Cleaning up some aspects of the language support work to move into

development and finish cleaning the main branch.
This commit is contained in:
2026-08-12 09:46:56 -05:00
parent 48235c005d
commit 6e035d1f4c
10 changed files with 139 additions and 53 deletions

View File

@@ -28,5 +28,4 @@ vim.schedule(function()
-- Experimental
-- require('plugins.note_taking') -- In house note taking plugin (TODO: rename once the plugin name is solidified)
-- require('plugins.nvim-lint') -- Linter loader
end)

View File

@@ -9,7 +9,6 @@ end
-- Start treesitter parsing on the current buffer
vim.api.nvim_create_autocmd("FileType", {
callback = function(ev)
-- Use pcall to prevent blocking errors
pcall(vim.treesitter.start, ev.buf)
end
})
@@ -53,12 +52,11 @@ vim.api.nvim_create_autocmd('LspAttach', {
-- end,
-- })
-- Keyboard Mappings
local bufnr = args.buf
local bufopts = { noremap = true, silent = true, buffer = bufnr }
vim.keymap.set('n', '<C-[>', function() vim.diagnostic.jump({count=-1, float=true}) end, bufopts)
vim.keymap.set('n', '<C-]>', function() vim.diagnostic.jump({count=1, float=true}) end, bufopts)
vim.keymap.set('n', '<C-[>', function() vim.diagnostic.jump({ count = -1, float = true }) end, bufopts)
vim.keymap.set('n', '<C-]>', function() vim.diagnostic.jump({ count = 1, float = true }) end, bufopts)
vim.keymap.set('n', 'ga', vim.lsp.buf.code_action, bufopts)
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, bufopts)
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts)
@@ -74,6 +72,14 @@ vim.api.nvim_create_autocmd('LspAttach', {
})
-- Enable LSP engines
-- vim.lsp.enable('clangd')
vim.lsp.enable('gdscript')
vim.lsp.enable('r_language_server')
local enabled_lsps = {
'clangd',
'gdscript',
'jinja_lsp',
'pylsp',
'r_language_server',
}
for _, lsp in pairs(enabled_lsps) do
vim.lsp.enable(lsp)
end