-
-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
See:
config_manager/xdg_config/nvim/lua/tj/lsp/init.lua
Lines 40 to 51 in 66d5262
| local augroup_format = vim.api.nvim_create_augroup("custom-lsp-format", { clear = true }) | |
| local augroup_semantic = vim.api.nvim_create_augroup("custom-lsp-semantic", { clear = true }) | |
| local autocmd_format = function(async, filter) | |
| vim.api.nvim_clear_autocmds { buffer = 0, group = augroup_format } | |
| vim.api.nvim_create_autocmd("BufWritePre", { | |
| buffer = 0, | |
| callback = function() | |
| vim.lsp.buf.format { async = async, filter = filter } | |
| end, | |
| }) | |
| end |
I think you're missing the group = augroup_format in line 46.
Metadata
Metadata
Assignees
Labels
No labels