mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
feat(nvim): Quality of life config changes
- Blink.nvim: Fall back to default keymaps - blink.nvim: Remove codium from sources - lsp: Enable inlay hints by default - keymap: <space+=> -> Evaluate highlighted text & paste result at end
This commit is contained in:
@@ -30,7 +30,7 @@ return {
|
||||
-- 'none' - create all the mappings yourself
|
||||
keymap = {
|
||||
preset = "none",
|
||||
["<C-CR>"] = { "accept", "fallback" }, -- Ctrl + Enter to accept
|
||||
["<CR>"] = { "accept", "fallback" }, -- Ctrl + Enter to accept
|
||||
["<C-x>"] = { "hide", "fallback" }, -- Ctrl + x to reject
|
||||
|
||||
["<Tab>"] = { "snippet_forward", "fallback" },
|
||||
@@ -52,7 +52,7 @@ return {
|
||||
|
||||
completion = {
|
||||
keyword = { range = "full" },
|
||||
accept = { auto_brackets = { enabled = false } },
|
||||
accept = { auto_brackets = { enabled = true } },
|
||||
menu = {
|
||||
border = "rounded",
|
||||
draw = {
|
||||
@@ -116,7 +116,7 @@ return {
|
||||
"buffer",
|
||||
"path",
|
||||
"snippets",
|
||||
"codeium",
|
||||
-- "codeium",
|
||||
},
|
||||
per_filetype = {
|
||||
sql = { "snippets", "dadbod", "buffer" },
|
||||
@@ -125,11 +125,11 @@ return {
|
||||
},
|
||||
|
||||
providers = {
|
||||
codeium = {
|
||||
name = "codeium", -- Cause it's registered on nvim-cmp as "codeium"
|
||||
module = "blink.compat.source",
|
||||
score_offset = 600,
|
||||
},
|
||||
-- codeium = {
|
||||
-- name = "codeium", -- Cause it's registered on nvim-cmp as "codeium"
|
||||
-- module = "blink.compat.source",
|
||||
-- score_offset = 600,
|
||||
-- },
|
||||
conventional_commits = {
|
||||
name = "Conventional Commits",
|
||||
module = "blink-cmp-conventional-commits",
|
||||
|
||||
@@ -85,8 +85,9 @@ return {
|
||||
})
|
||||
end
|
||||
|
||||
-- Native lsp inline virtual text / inlay hints
|
||||
if client and client.supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint) then
|
||||
-- vim.lsp.inlay_hint.enable()
|
||||
vim.lsp.inlay_hint.enable() -- enabled by default
|
||||
|
||||
map("<leader>cI", function()
|
||||
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled({ bufnr = event.buf }))
|
||||
|
||||
Reference in New Issue
Block a user