Compare commits
2 Commits
c02781e3bf
...
f6fc4b0ef5
Author | SHA1 | Date | |
---|---|---|---|
f6fc4b0ef5
|
|||
b475e6c80f
|
@@ -132,5 +132,5 @@ vim.lsp.enable({
|
|||||||
-- managed in lsp directory
|
-- managed in lsp directory
|
||||||
"ltex_ls_plus", "rust-analyzer", "gdscript",
|
"ltex_ls_plus", "rust-analyzer", "gdscript",
|
||||||
-- managed by lsp-config
|
-- managed by lsp-config
|
||||||
"tinymist", "texlab", "clangd", "pyright", "ts_ls", "eslint", "lua_ls", "bashls"
|
"tinymist", "texlab", "clangd", "pyright", "ts_ls", "eslint", "lua_ls", "bashls", "jsonls"
|
||||||
})
|
})
|
||||||
|
@@ -1,10 +1,3 @@
|
|||||||
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
|
||||||
|
|
||||||
@@ -113,18 +106,6 @@ require('lazy').setup({
|
|||||||
-- See the fuzzy documentation for more information
|
-- See the fuzzy documentation for more information
|
||||||
fuzzy = {
|
fuzzy = {
|
||||||
implementation = "prefer_rust_with_warning",
|
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" }
|
||||||
|
@@ -32,6 +32,7 @@ These packages are:
|
|||||||
- `clangd`
|
- `clangd`
|
||||||
- `eslint-language-server`
|
- `eslint-language-server`
|
||||||
- `godot` (optional)
|
- `godot` (optional)
|
||||||
|
- `json-language-server`
|
||||||
- `ltex-ls-plus`
|
- `ltex-ls-plus`
|
||||||
- `lua-language-server`
|
- `lua-language-server`
|
||||||
- `pyright`
|
- `pyright`
|
||||||
|
Reference in New Issue
Block a user