master
blob42 1 year ago
parent bd04d2a322
commit f3965f1276

@ -1 +1,15 @@
-- require('scratch.remote-lsp').setup_lsp_dirhook()
local present, lspconfig = pcall(require, "lspconfig")
if not present then
return
end
-- local util = lspconfig.util
-- util.on_setup = util.add_hook_before(util.on_setup, function (config)
-- local o_root_dir = config.root_dir
-- config.root_dir = function(fname, bufnr)
-- -- P(fname)
-- local dir = o_root_dir(fname)
-- return "/source"
-- end
-- end)

@ -817,7 +817,7 @@ M.nvterm = { --{{{
["<leader>rv"] = {function()
local nvterm_utils = require('spike.utils.nvterm')
nvterm_utils.run_cmd(nil, { mode = "vertical" })
end, "run cmd in floating terminal"},
end, "run cmd in vertical terminal"},
["<leader><UP>"] = {function()
@ -1052,6 +1052,7 @@ M.zk = {
end, "zk new note"},
["<leader>zK"] = {get_zk_notedirs, "zk new note, custom dir"},
["<leader>zo"] = {"<Cmd>ZkNotes { sort = { 'modified' }}<CR>","zk list notes"},
["<leader>zt"] = {"<Cmd>ZkTags<CR>","zk list tags"},
-- ["<leader>zf"] = {"<Cmd>ZkNotes { sort = { 'modified' }, match = vim.fn.input('Search: ') }<CR>","zk notes matching a given query"},
["<leader>zf"] = {function()
vim.ui.input({ prompt = "zk match:"}, function (input)

@ -151,6 +151,7 @@ local config = {
-- disable auto start of lsp per language
-- set global default on lspconfig (see lspconfig doc)
gopls = {
cmd = { "nc", "localhost", "9999" },
-- cmd = {"socat", "-" ,"tcp:localhost:4444"},
-- on_attach = require("spike.lsp.go").custom_attach,
on_attach = require("spike.lsp.go").gopls_onattach,

@ -17,6 +17,7 @@ function M.setup()
{
autostart = false
})
end

@ -1,5 +1,6 @@
---@diagnostic disable: undefined-global
-- return two lists of snippets: first are normal snippets second are autosnippets
return {
s({ trig = "lm", dscr = "local lua module"},
fmt([[
@ -49,4 +50,8 @@ return M
i(0)
}))
}, { -- autosnippets
-- s("autotrig", t("autotriggered"))
}

Loading…
Cancel
Save