mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 17:28:50 +02:00
add: tidy up the code, more modular
This commit is contained in:
parent
1545d8335d
commit
1f424a1225
10 changed files with 583 additions and 522 deletions
10
lua/user/utils/formatter.lua
Normal file
10
lua/user/utils/formatter.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
local null_ls = require("null-ls")
|
||||
local M = {}
|
||||
|
||||
M.list_registered = function(filetype)
|
||||
local method = null_ls.methods.FORMATTING
|
||||
local registered_providers = require("user.utils.lsp").list_registered_providers_names(filetype)
|
||||
return registered_providers[method] or {}
|
||||
end
|
||||
|
||||
return M
|
Loading…
Add table
Add a link
Reference in a new issue