Compare commits

..

4 Commits

2 changed files with 33 additions and 2 deletions

View File

@@ -81,3 +81,12 @@ vim.api.nvim_create_autocmd("FileType", {
vim.o.spelllang = "en"
end,
})
-- disable LSP for password-store
vim.api.nvim_create_autocmd({"BufEnter", "BufRead" }, {
pattern = "/dev/shm/pass*",
group = vim.api.nvim_create_augroup('DisableLsp', {}),
callback = function ()
vim.lsp.stop_client(vim.lsp.get_clients())
end
})

View File

@@ -1,3 +1,10 @@
local source_priority = {
snippets = 4,
lsp = 3,
path = 2,
buffer = 1
}
require('lazy').setup({
-- NOTE: First, some plugins that don't require any configuration
@@ -37,6 +44,7 @@ require('lazy').setup({
-- DAP: Debug Adapter Protocol
'mfussenegger/nvim-dap',
{
-- [[ Autocompletion ]]
'saghen/blink.cmp',
@@ -68,7 +76,7 @@ require('lazy').setup({
-- C-k: Toggle signature help (if signature.enabled = true)
--
-- See :h blink-cmp-config-keymap for defining your own keymap
keymap = { preset = 'super-tab' },
keymap = { preset = 'default' },
appearance = {
-- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
@@ -103,7 +111,21 @@ require('lazy').setup({
-- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"`
--
-- See the fuzzy documentation for more information
fuzzy = { implementation = "prefer_rust_with_warning" }
fuzzy = {
implementation = "prefer_rust_with_warning",
sorts = {
function(a, b)
local a_priority = source_priority[a.source_id];
local b_priority = source_priority[b.source_id];
if a_priority ~= b_priority then
return a_priority > b_priority
end
end,
-- default
'score',
'sort_text'
}
}
},
opts_extend = { "sources.default" }
},