You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
888 B
Lua
33 lines
888 B
Lua
local ok, null_ls = pcall(require, 'null-ls')
|
|
if not ok then
|
|
vim.notify("missing module null-ls", vim.log.levels.WARN)
|
|
end
|
|
|
|
local M = {}
|
|
|
|
local config = {
|
|
-- verbose = true,
|
|
run_in_floaterm = false,
|
|
icons = false,
|
|
-- icons = { breakpoint = "🧘", currentpos = "🏃" }, -- set to false to disable
|
|
lsp_cfg = false, -- handled instead by navigator
|
|
lsp_keymaps = false, -- use navigator
|
|
-- lsp_diag_signs = false,
|
|
lsp_codelens = false, -- use navigator
|
|
textobjects = true,
|
|
dap_debug_keymap = false,
|
|
-- dap_debug_gui = false,
|
|
-- dap_debug_vt = false,
|
|
log_path = vim.fn.stdpath('cache') .. '/gonvim.log',
|
|
}
|
|
|
|
function M.setup()
|
|
require("go").setup(config)
|
|
local gotest = require('go.null_ls').gotest()
|
|
local gotest_codeaction = require("go.null_ls").gotest_action()
|
|
null_ls.register(gotest)
|
|
null_ls.register(gotest_codeaction)
|
|
end
|
|
|
|
return M
|