mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
chore(nvim): tweaks to lsp, autocommands, sessions
This commit is contained in:
@@ -104,8 +104,4 @@ autocmd({ 'BufRead', 'BufNewFile' }, {
|
||||
command = 'set filetype=sshconfig',
|
||||
})
|
||||
|
||||
autocmd('QuickFixCmdPost', {
|
||||
callback = function() vim.cmd [[Trouble qflist open]] end,
|
||||
})
|
||||
|
||||
-- vim: ts=2 sts=2 sw=2 et
|
||||
|
||||
@@ -42,12 +42,6 @@ local lsp_servers = {
|
||||
diagnostics = {
|
||||
globals = {
|
||||
'vim',
|
||||
-- busted
|
||||
'describe',
|
||||
'it',
|
||||
'before_each',
|
||||
'after_each',
|
||||
'assert',
|
||||
},
|
||||
disable = {
|
||||
-- Ignore lua_ls noisy `missing-fields` warnings
|
||||
@@ -55,7 +49,7 @@ local lsp_servers = {
|
||||
},
|
||||
},
|
||||
hint = {
|
||||
enable = false,
|
||||
enable = true,
|
||||
arrayIndex = 'Auto',
|
||||
await = true,
|
||||
paramName = 'All',
|
||||
|
||||
@@ -10,6 +10,28 @@ return {
|
||||
'~/Downloads',
|
||||
'~/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',
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user