You've already forked dotfiles
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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user