You've already forked dotfiles
fix: moving the git signing settings to the local config, updating
neovim to use the diagnostic.jump functions, and enabling the r_language_server LSP
This commit is contained in:
@@ -57,8 +57,8 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
||||
local bufnr = args.buf
|
||||
|
||||
local bufopts = { noremap = true, silent = true, buffer = bufnr }
|
||||
vim.keymap.set('n', '<C-[>', vim.diagnostic.goto_prev, bufopts)
|
||||
vim.keymap.set('n', '<C-]>', vim.diagnostic.goto_next, 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)
|
||||
@@ -76,3 +76,4 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
||||
-- Enable LSP engines
|
||||
-- vim.lsp.enable('clangd')
|
||||
vim.lsp.enable('gdscript')
|
||||
vim.lsp.enable('r_language_server')
|
||||
|
||||
@@ -11,7 +11,6 @@ vim.opt.fileformat = 'unix' -- Explicitly s
|
||||
vim.opt.fillchars = 'fold: ' -- Sets the character that fills in a fold line (removes the dots)
|
||||
vim.opt.foldcolumn = '0' -- Disables the foldcolumn
|
||||
vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()' -- Uses Treesitter to determine where code folding should occur
|
||||
vim.opt.foldlevel = 10 -- Sets the initial level at which folds will be closed
|
||||
vim.opt.foldlevelstart = 4 -- Sets the initial fold level
|
||||
vim.opt.foldmethod = 'expr' -- Attempt to use the syntax of a file to set folds.
|
||||
vim.opt.foldnestmax = 4 -- Maximum level of fold nesting
|
||||
|
||||
Reference in New Issue
Block a user