Compare commits
1 Commits
main
...
6975177d74
Author | SHA1 | Date | |
---|---|---|---|
6975177d74
|
@@ -81,12 +81,3 @@ 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
|
||||
})
|
||||
|
@@ -1,10 +1,3 @@
|
||||
local source_priority = {
|
||||
snippets = 4,
|
||||
lsp = 3,
|
||||
path = 2,
|
||||
buffer = 1
|
||||
}
|
||||
|
||||
require('lazy').setup({
|
||||
-- NOTE: First, some plugins that don't require any configuration
|
||||
|
||||
@@ -44,7 +37,6 @@ require('lazy').setup({
|
||||
|
||||
-- DAP: Debug Adapter Protocol
|
||||
'mfussenegger/nvim-dap',
|
||||
|
||||
{
|
||||
-- [[ Autocompletion ]]
|
||||
'saghen/blink.cmp',
|
||||
@@ -76,7 +68,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 = 'default' },
|
||||
keymap = { preset = 'super-tab' },
|
||||
|
||||
appearance = {
|
||||
-- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
|
||||
@@ -111,21 +103,7 @@ 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",
|
||||
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'
|
||||
}
|
||||
}
|
||||
fuzzy = { implementation = "prefer_rust_with_warning" }
|
||||
},
|
||||
opts_extend = { "sources.default" }
|
||||
},
|
||||
|
Reference in New Issue
Block a user