Compare commits
4 Commits
6975177d74
...
main
Author | SHA1 | Date | |
---|---|---|---|
c02781e3bf
|
|||
aca3a6f5b6
|
|||
314be14e73
|
|||
efa9e8e862
|
@@ -81,3 +81,12 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||||||
vim.o.spelllang = "en"
|
vim.o.spelllang = "en"
|
||||||
end,
|
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,3 +1,10 @@
|
|||||||
|
local source_priority = {
|
||||||
|
snippets = 4,
|
||||||
|
lsp = 3,
|
||||||
|
path = 2,
|
||||||
|
buffer = 1
|
||||||
|
}
|
||||||
|
|
||||||
require('lazy').setup({
|
require('lazy').setup({
|
||||||
-- NOTE: First, some plugins that don't require any configuration
|
-- NOTE: First, some plugins that don't require any configuration
|
||||||
|
|
||||||
@@ -37,6 +44,7 @@ require('lazy').setup({
|
|||||||
|
|
||||||
-- DAP: Debug Adapter Protocol
|
-- DAP: Debug Adapter Protocol
|
||||||
'mfussenegger/nvim-dap',
|
'mfussenegger/nvim-dap',
|
||||||
|
|
||||||
{
|
{
|
||||||
-- [[ Autocompletion ]]
|
-- [[ Autocompletion ]]
|
||||||
'saghen/blink.cmp',
|
'saghen/blink.cmp',
|
||||||
@@ -68,7 +76,7 @@ require('lazy').setup({
|
|||||||
-- C-k: Toggle signature help (if signature.enabled = true)
|
-- C-k: Toggle signature help (if signature.enabled = true)
|
||||||
--
|
--
|
||||||
-- See :h blink-cmp-config-keymap for defining your own keymap
|
-- See :h blink-cmp-config-keymap for defining your own keymap
|
||||||
keymap = { preset = 'super-tab' },
|
keymap = { preset = 'default' },
|
||||||
|
|
||||||
appearance = {
|
appearance = {
|
||||||
-- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
|
-- '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"`
|
-- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"`
|
||||||
--
|
--
|
||||||
-- See the fuzzy documentation for more information
|
-- 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" }
|
opts_extend = { "sources.default" }
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user