feat(nvim): disable rust extra, manually configure lsp
This commit is contained in:
parent
f09894d0dc
commit
febc9ee925
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"extras": [
|
"extras": [
|
||||||
"lazyvim.plugins.extras.lang.rust"
|
|
||||||
],
|
],
|
||||||
"news": {
|
"news": {
|
||||||
"NEWS.md": "3314"
|
"NEWS.md": "3314"
|
||||||
|
@ -11,7 +11,8 @@ require("lazy").setup({
|
|||||||
-- add LazyVim and import its plugins
|
-- add LazyVim and import its plugins
|
||||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins", opts = { colorscheme = "gruvbox" } },
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins", opts = { colorscheme = "gruvbox" } },
|
||||||
-- import any extras modules here
|
-- import any extras modules here
|
||||||
-- { import = "lazyvim.plugins.extras.lang.typescript" },
|
{ import = "lazyvim.plugins.extras.lang.typescript" },
|
||||||
|
-- { import = "lazyvim.plugins.extras.lang.rust" },
|
||||||
-- { import = "lazyvim.plugins.extras.lang.json" },
|
-- { import = "lazyvim.plugins.extras.lang.json" },
|
||||||
-- { import = "lazyvim.plugins.extras.ui.mini-animate" },
|
-- { import = "lazyvim.plugins.extras.ui.mini-animate" },
|
||||||
-- import/override with your plugins
|
-- import/override with your plugins
|
||||||
|
@ -1,17 +1,30 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
---@class PluginLspOpts
|
|
||||||
opts = {
|
opts = {
|
||||||
---@type lspconfig.options
|
|
||||||
---@diagnostic disable-next-line: missing-fields
|
|
||||||
servers = {
|
servers = {
|
||||||
---@diagnostic disable-next-line: missing-fields
|
rust_analyzer = {},
|
||||||
tsserver = {},
|
taplo = {
|
||||||
---@diagnostic disable-next-line: missing-fields
|
keys = {
|
||||||
eslint = {},
|
{
|
||||||
nil_ls = {},
|
"K",
|
||||||
|
function()
|
||||||
|
if vim.fn.expand("%:t") == "Cargo.toml" and require("crates").popup_available() then
|
||||||
|
require("crates").show_popup()
|
||||||
|
else
|
||||||
|
vim.lsp.buf.hover()
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
desc = "Show Crate Documentation",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
-- setup = {
|
||||||
|
-- rust_analyzer = function()
|
||||||
|
-- return true
|
||||||
|
-- end,
|
||||||
|
-- },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -64,4 +77,10 @@ return {
|
|||||||
{
|
{
|
||||||
"rush-rs/tree-sitter-asm",
|
"rush-rs/tree-sitter-asm",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"imsnif/kdl.vim",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"andreshazard/vim-freemarker",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user