format and stuff
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
local M = {}
|
||||
local notify = require 'notify'
|
||||
local notify = require("notify")
|
||||
|
||||
local lsp_util = vim.lsp.util
|
||||
|
||||
function M.code_action_listener()
|
||||
local context = { diagnostics = vim.lsp.diagnostic.get_line_diagnostics() }
|
||||
local params = lsp_util.make_range_params()
|
||||
params.context = context
|
||||
vim.lsp.buf_request(0, 'textDocument/codeAction', params, function(err, _, result)
|
||||
notify('codeAction '..result, 'info', {timeout=500})
|
||||
end)
|
||||
local context = { diagnostics = vim.lsp.diagnostic.get_line_diagnostics() }
|
||||
local params = lsp_util.make_range_params()
|
||||
params.context = context
|
||||
vim.lsp.buf_request(0, "textDocument/codeAction", params, function(err, _, result)
|
||||
notify("codeAction " .. result, "info", { timeout = 500 })
|
||||
end)
|
||||
end
|
||||
|
||||
return M
|
||||
|
Reference in New Issue
Block a user