This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---Buftypes ignored on quit | |
| local autoclosables = { 'nofile', 'terminal' } | |
| ---Print out less verbose error messages. | |
| --- | |
| ---@param cmd string NeoVim command. | |
| local function call(cmd) | |
| ---@diagnostic disable-next-line: param-type-mismatch | |
| xpcall(vim.cmd, function(msg) | |
| local err = string.gsub(msg, '^.+Vim%(%w+%):', '') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- trigger upon LSP attachment | |
| vim.api.nvim_create_autocmd('User', { | |
| pattern = 'LspAttached', | |
| once = true, | |
| callback = vim.lsp.codelens.refresh, | |
| }) | |
| -- ... servers and enhanced_opts ... | |
| for _, lsp in ipairs(servers) do |