584 current 2024-05-14 14:32:25 24.05.20240512.2057814 6.8.6-zen1 *
This commit is contained in:
parent
1a9bd617ba
commit
8f25c2fc0b
6 changed files with 31 additions and 22 deletions
|
|
@ -34,6 +34,8 @@ return {
|
|||
-- Neotree
|
||||
[l("e")] = { cmd("Neotree toggle"), fmt("FileTree", "Toggle Neotree") },
|
||||
|
||||
[l("ng")] = { cmd("Neogit"), fmt("Git", "Open Neogit") },
|
||||
|
||||
-- move.nvim
|
||||
["<A-j>"] = { cmd("MoveLine(1)"), "Move line down" },
|
||||
["<A-k>"] = { cmd("MoveLine(-1)"), "Move line up" },
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
local lsp = require("lsp.functions")
|
||||
|
||||
return {
|
||||
["textDocument/codeLens"] = {
|
||||
event = { "BufEnter", "InsertLeave" },
|
||||
opts = {
|
||||
group = vim.api.nvim_create_augroup("LspCodelens", {}),
|
||||
callback = lsp.refresh_codelens,
|
||||
},
|
||||
},
|
||||
-- ["textDocument/codeLens"] = {
|
||||
-- event = { "BufEnter", "InsertLeave" },
|
||||
-- opts = {
|
||||
-- group = vim.api.nvim_create_augroup("LspCodelens", {}),
|
||||
-- callback = lsp.refresh_codelens,
|
||||
-- },
|
||||
-- },
|
||||
["textDocument/formatting"] = {
|
||||
event = "BufWritePost",
|
||||
opts = {
|
||||
|
|
|
|||
|
|
@ -39,10 +39,10 @@ return {
|
|||
["textDocument/typeDefinition"] = {
|
||||
["gT"] = { lsp.type_definition, "Go to type definition" },
|
||||
},
|
||||
["textDocument/codeLens"] = {
|
||||
["<leader>ll"] = { lsp.run_codelens, fmt("Run", "Run codelens") },
|
||||
["<leader>lL"] = { lsp.refresh_codelens, fmt("Restart", "Refresh codelens") },
|
||||
},
|
||||
-- ["textDocument/codeLens"] = {
|
||||
-- ["<leader>ll"] = { lsp.run_codelens, fmt("Run", "Run codelens") },
|
||||
-- ["<leader>lL"] = { lsp.refresh_codelens, fmt("Restart", "Refresh codelens") },
|
||||
-- },
|
||||
["workspace/symbol"] = {
|
||||
["<leader>ls"] = { lsp.symbols, fmt("Symbol", "Workspace symbols") },
|
||||
},
|
||||
|
|
|
|||
|
|
@ -92,8 +92,6 @@ return {
|
|||
return
|
||||
end
|
||||
|
||||
local catppuccin = require("catppuccin")
|
||||
|
||||
return {
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
|
|
@ -113,7 +111,6 @@ return {
|
|||
sources = cmp.config.sources({
|
||||
{ name = "nvim_lsp", priority = 1000 },
|
||||
{ name = "crates", priority = 1000 },
|
||||
{ name = "vim-dadbod-completion", priority = 1000 },
|
||||
{ name = "luasnip", priority = 750 },
|
||||
{ name = "buffer", priority = 500 },
|
||||
{ name = "path", priority = 250 },
|
||||
|
|
|
|||
|
|
@ -16,5 +16,14 @@ return {
|
|||
config = function()
|
||||
vim.g.db_ui_notification_width = 1
|
||||
vim.g.db_ui_debug = 1
|
||||
|
||||
local cmp = require("cmp")
|
||||
|
||||
cmp.setup.filetype({ "sql" }, {
|
||||
sources = {
|
||||
{ name = "vim-dadbod-completion" },
|
||||
{ name = "buffer" },
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue