Skip to content

Commit f4d2a5c

Browse files
committed
Nvim updates
1 parent 97fd06e commit f4d2a5c

File tree

2 files changed

+16
-19
lines changed

2 files changed

+16
-19
lines changed

nvim/.config/nvim/after/plugin/lsp.lua

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ vim.api.nvim_create_autocmd("LspAttach", {
1818

1919
local telescope = require("telescope.builtin")
2020

21-
map("gd", telescope.lsp_definitions, "[G]oto [D]efinitions")
22-
map("gr", telescope.lsp_references, "[G]oto [R]eferences")
23-
map("gi", telescope.lsp_implementations, "[G]oto [I]mplementation")
24-
map("gt", telescope.lsp_type_definitions, "[G]oto [T]type definitions")
21+
-- Override vim lookups with telescope
22+
-- TODO: <leader>f over g for telescope to keep original motions?
23+
map("grr", telescope.lsp_references, "[G]oto [R]eferences")
24+
map("gri", telescope.lsp_implementations, "[G]oto [I]mplementation")
2525

26-
map("fds", telescope.lsp_document_symbols, "[F]ind [D]ocument [S]ymbols")
27-
map("fws", telescope.lsp_dynamic_workspace_symbols, "[F]ind [W]orkspace [S]ymbols")
26+
map("<leader>fd", telescope.lsp_definitions, "[F]oto [D]efinitions")
27+
map("<leader>fds", telescope.lsp_document_symbols, "[F]ind [D]ocument [S]ymbols")
28+
map("<leader>ftd", telescope.lsp_type_definitions, "[F]ind [T]type [D]efinitions")
29+
map("<leader>fws", telescope.lsp_dynamic_workspace_symbols, "[F]ind [W]orkspace [S]ymbols")
2830

29-
map("gD", vim.lsp.buf.declaration, "[G]oto [D]eclaration")
3031
map("gs", vim.lsp.buf.signature_help, "[G]oto [S]ignature")
3132

3233
map("K", vim.lsp.buf.hover, "Quick documentation")
@@ -69,10 +70,6 @@ cmp.setup({
6970
-- Go to previous item
7071
["<S-Tab>"] = cmp.mapping.select_prev_item({ behavior = "select" }),
7172
}),
72-
preselect = "item",
73-
completion = {
74-
completeopt = "menu,menuone,noinsert,fuzzy",
75-
},
7673
})
7774

7875
-- Vim scripting

nvim/.config/nvim/lazy-lock.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"catppuccin": { "branch": "main", "commit": "5b5e3aef9ad7af84f463d17b5479f06b87d5c429" },
3-
"cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" },
3+
"cmp-nvim-lsp": { "branch": "main", "commit": "a8912b88ce488f411177fc8aed358b04dc246d7b" },
44
"cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "031e6ba70b0ad5eee49fd2120ff7a2e325b17fa7" },
5-
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
6-
"conform.nvim": { "branch": "master", "commit": "f9ef25a7ef00267b7d13bfc00b0dea22d78702d5" },
5+
"cmp-path": { "branch": "main", "commit": "c6635aae33a50d6010bf1aa756ac2398a2d54c32" },
6+
"conform.nvim": { "branch": "master", "commit": "6632e7d788a85bf8405ea0c812d343fc308b7b8c" },
77
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
8-
"lualine.nvim": { "branch": "master", "commit": "1517caa8fff05e4b4999857319d3b0609a7f57fa" },
9-
"nvim-cmp": { "branch": "main", "commit": "1e1900b0769324a9675ef85b38f99cca29e203b3" },
10-
"nvim-lspconfig": { "branch": "master", "commit": "85e0dd26b710e834a105d679200d01e326a3d2b0" },
11-
"nvim-treesitter": { "branch": "master", "commit": "a3315b8c7f0f1ddaa30b24bcc0af0d31024dfb6a" },
12-
"nvim-web-devicons": { "branch": "master", "commit": "4c3a5848ee0b09ecdea73adcd2a689190aeb728c" },
8+
"lualine.nvim": { "branch": "master", "commit": "86fe39534b7da729a1ac56c0466e76f2c663dc42" },
9+
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
10+
"nvim-lspconfig": { "branch": "master", "commit": "32b6a6449aaba11461fffbb596dd6310af79eea4" },
11+
"nvim-treesitter": { "branch": "master", "commit": "684eeac91ed8e297685a97ef70031d19ac1de25a" },
12+
"nvim-web-devicons": { "branch": "master", "commit": "c90dee4e930ab9f49fa6d77f289bff335b49e972" },
1313
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
1414
"telescope-file-browser.nvim": { "branch": "master", "commit": "626998e5c1b71c130d8bc6cf7abb6709b98287bb" },
1515
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },

0 commit comments

Comments
 (0)