chore(nvim): tweaks to lsp, autocommands, sessions

This commit is contained in:
2025-01-16 16:18:50 +02:00
parent 99477364bd
commit 3b665bdba0
3 changed files with 23 additions and 11 deletions

View File

@@ -104,8 +104,4 @@ autocmd({ 'BufRead', 'BufNewFile' }, {
command = 'set filetype=sshconfig', command = 'set filetype=sshconfig',
}) })
autocmd('QuickFixCmdPost', {
callback = function() vim.cmd [[Trouble qflist open]] end,
})
-- vim: ts=2 sts=2 sw=2 et -- vim: ts=2 sts=2 sw=2 et

View File

@@ -42,12 +42,6 @@ local lsp_servers = {
diagnostics = { diagnostics = {
globals = { globals = {
'vim', 'vim',
-- busted
'describe',
'it',
'before_each',
'after_each',
'assert',
}, },
disable = { disable = {
-- Ignore lua_ls noisy `missing-fields` warnings -- Ignore lua_ls noisy `missing-fields` warnings
@@ -55,7 +49,7 @@ local lsp_servers = {
}, },
}, },
hint = { hint = {
enable = false, enable = true,
arrayIndex = 'Auto', arrayIndex = 'Auto',
await = true, await = true,
paramName = 'All', paramName = 'All',

View File

@@ -10,6 +10,28 @@ return {
'~/Downloads', '~/Downloads',
'~/Library', '~/Library',
}, },
bypass_save_filetypes = {
'PlenaryTestPopup',
'alpha',
'checkhealth',
'dashboard',
'dbout',
'gitsigns.blame',
'grug-far',
'help',
'lspinfo',
'man',
'neo-tree',
'neotest-output',
'neotest-output-panel',
'neotest-summary',
'notify',
'qf',
'spectre_panel',
'startuptime',
'trouble',
'tsplayground',
},
-- log_level = 'debug', -- log_level = 'debug',
}, },
}, },