update
This commit is contained in:
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()
|
["<leader>rv"] = {function()
|
||||||
local nvterm_utils = require('spike.utils.nvterm')
|
local nvterm_utils = require('spike.utils.nvterm')
|
||||||
nvterm_utils.run_cmd(nil, { mode = "vertical" })
|
nvterm_utils.run_cmd(nil, { mode = "vertical" })
|
||||||
end, "run cmd in floating terminal"},
|
end, "run cmd in vertical terminal"},
|
||||||
|
|
||||||
|
|
||||||
["<leader><UP>"] = {function()
|
["<leader><UP>"] = {function()
|
||||||
@ -1052,6 +1052,7 @@ M.zk = {
|
|||||||
end, "zk new note"},
|
end, "zk new note"},
|
||||||
["<leader>zK"] = {get_zk_notedirs, "zk new note, custom dir"},
|
["<leader>zK"] = {get_zk_notedirs, "zk new note, custom dir"},
|
||||||
["<leader>zo"] = {"<Cmd>ZkNotes { sort = { 'modified' }}<CR>","zk list notes"},
|
["<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"] = {"<Cmd>ZkNotes { sort = { 'modified' }, match = vim.fn.input('Search: ') }<CR>","zk notes matching a given query"},
|
||||||
["<leader>zf"] = {function()
|
["<leader>zf"] = {function()
|
||||||
vim.ui.input({ prompt = "zk match:"}, function (input)
|
vim.ui.input({ prompt = "zk match:"}, function (input)
|
||||||
|
@ -151,6 +151,7 @@ local config = {
|
|||||||
-- disable auto start of lsp per language
|
-- disable auto start of lsp per language
|
||||||
-- set global default on lspconfig (see lspconfig doc)
|
-- set global default on lspconfig (see lspconfig doc)
|
||||||
gopls = {
|
gopls = {
|
||||||
|
cmd = { "nc", "localhost", "9999" },
|
||||||
-- cmd = {"socat", "-" ,"tcp:localhost:4444"},
|
-- cmd = {"socat", "-" ,"tcp:localhost:4444"},
|
||||||
-- on_attach = require("spike.lsp.go").custom_attach,
|
-- on_attach = require("spike.lsp.go").custom_attach,
|
||||||
on_attach = require("spike.lsp.go").gopls_onattach,
|
on_attach = require("spike.lsp.go").gopls_onattach,
|
||||||
|
@ -17,6 +17,7 @@ function M.setup()
|
|||||||
{
|
{
|
||||||
autostart = false
|
autostart = false
|
||||||
})
|
})
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---@diagnostic disable: undefined-global
|
---@diagnostic disable: undefined-global
|
||||||
|
|
||||||
|
-- return two lists of snippets: first are normal snippets second are autosnippets
|
||||||
return {
|
return {
|
||||||
s({ trig = "lm", dscr = "local lua module"},
|
s({ trig = "lm", dscr = "local lua module"},
|
||||||
fmt([[
|
fmt([[
|
||||||
@ -49,4 +50,8 @@ return M
|
|||||||
i(0)
|
i(0)
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
}, { -- autosnippets
|
||||||
|
-- s("autotrig", t("autotriggered"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user