aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2024-05-23 14:38:56 +0200
committereug-vs <eugene@eug-vs.xyz>2024-05-23 14:38:56 +0200
commit69ecf60fac9b950e373e6bf69c4e631f5acf7445 (patch)
treed1cf5d5bf8099b26daea5e5bdcaf018757d2a7dc
parent80a4d36ead3d1329925e4692cfe46498aaf08467 (diff)
downloaddotfiles-69ecf60fac9b950e373e6bf69c4e631f5acf7445.tar.gz
chore(nvim): update configuration
-rw-r--r--nvim/.config/nvim/lua/plugins/completion.lua5
-rw-r--r--nvim/.config/nvim/lua/plugins/dadbod.lua7
-rw-r--r--nvim/.config/nvim/lua/plugins/zettelkasten.lua10
3 files changed, 13 insertions, 9 deletions
diff --git a/nvim/.config/nvim/lua/plugins/completion.lua b/nvim/.config/nvim/lua/plugins/completion.lua
index 3467dbc..b7376bd 100644
--- a/nvim/.config/nvim/lua/plugins/completion.lua
+++ b/nvim/.config/nvim/lua/plugins/completion.lua
@@ -19,7 +19,6 @@ return {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-path",
"hrsh7th/cmp-buffer",
- "hrsh7th/cmp-nvim-lua",
"onsails/lspkind-nvim",
},
config = function()
@@ -42,12 +41,12 @@ return {
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<CR>"] = cmp.mapping.confirm({ select = true }),
- ["<C-l>"] = cmp.mapping(function()
+ ["<C-k>"] = cmp.mapping(function()
if luasnip.expand_or_locally_jumpable() then
luasnip.expand_or_jump()
end
end, { "i", "s" }),
- ["<C-h>"] = cmp.mapping(function()
+ ["<C-j>"] = cmp.mapping(function()
if luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
end
diff --git a/nvim/.config/nvim/lua/plugins/dadbod.lua b/nvim/.config/nvim/lua/plugins/dadbod.lua
index 19311ae..ac3446b 100644
--- a/nvim/.config/nvim/lua/plugins/dadbod.lua
+++ b/nvim/.config/nvim/lua/plugins/dadbod.lua
@@ -13,5 +13,12 @@ return {
init = function()
vim.g.db_ui_use_nerd_fonts = 1
vim.g.db_ui_env_variable_url = "DATABASE_URL"
+
+ require("cmp").setup.filetype({ "sql" }, {
+ sources = {
+ { name = "vim-dadbod-completion" },
+ { name = "buffer" },
+ },
+ })
end,
}
diff --git a/nvim/.config/nvim/lua/plugins/zettelkasten.lua b/nvim/.config/nvim/lua/plugins/zettelkasten.lua
index bbbe0f1..e802545 100644
--- a/nvim/.config/nvim/lua/plugins/zettelkasten.lua
+++ b/nvim/.config/nvim/lua/plugins/zettelkasten.lua
@@ -3,16 +3,14 @@ return {
init = function()
require("zk").setup({
picker = "telescope",
-
lsp = {
- -- `config` is passed to `vim.lsp.start_client(config)`
config = {
cmd = { "zk", "lsp" },
name = "zk",
- on_attach = on_attach,
- flags = flags,
- capabilities = capabilities,
- -- etc, see `:h vim.lsp.start_client()`
+ -- TODO: do I need this? Seems to work without
+ -- on_attach = on_attach,
+ -- flags = flags,
+ -- capabilities = capabilities,
},
-- automatically attach buffers in a zk notebook that match the given filetypes