mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-10 07:25:30 +00:00
lsp: fix toggleFormatOnSave
This commit is contained in:
parent
efa859381f
commit
8ce85f5955
1 changed files with 4 additions and 4 deletions
|
|
@ -84,13 +84,13 @@ in {
|
|||
group = augroup,
|
||||
buffer = bufnr,
|
||||
callback = function()
|
||||
if vim.b.disableFormatSave then
|
||||
return
|
||||
end
|
||||
|
||||
${
|
||||
if config.vim.lsp.null-ls.enable
|
||||
then ''
|
||||
if vim.b.disableFormatSave then
|
||||
return
|
||||
end
|
||||
|
||||
local function is_null_ls_formatting_enabled(bufnr)
|
||||
local file_type = vim.api.nvim_buf_get_option(bufnr, "filetype")
|
||||
local generators = require("null-ls.generators").get_available(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue