Skip to content

Commit

Permalink
Fix 2 rust analyzers, add fidget to show lsp progress, noticed that c…
Browse files Browse the repository at this point in the history
…trl+click works
  • Loading branch information
utensil committed Oct 20, 2024
1 parent cf2a2ce commit 420d402
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
22 changes: 17 additions & 5 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@ package.path = package.path .. ';' .. current_dir .. '?.lua'

require "init"

-- to prevent colision with rusteceanvim: not working
-- to prevent colision with rusteceanvim
-- https://github.com/mrcjkb/rustaceanvim/discussions/174#discussioncomment-8193827
vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "rust_analyzer" })

-- https://github.com/mrcjkb/rustaceanvim/discussions/94#discussioncomment-7813716: not working
require("mason-lspconfig").setup_handlers {
["rust_analyzer"] = function() end,
}
-- In order for the above to work, one must excute `:LvimCacheReset` manually'
-- or uncomment the following
-- vim.schedule(function()
-- vim.cmd('LvimCacheReset')
-- end)

-- -- https://github.com/mrcjkb/rustaceanvim/discussions/94#discussioncomment-7813716: not working
-- require("mason-lspconfig").setup_handlers {
-- ["rust_analyzer"] = function() end,
-- }

lvim.plugins = {
-- {
Expand All @@ -31,6 +37,12 @@ lvim.plugins = {
-- vim.cmd('colorscheme base16-railscasts')
-- end
},
{
"j-hui/fidget.nvim",
opts = {
-- options
},
},
{
"kentookura/forester.nvim",
-- tried removing this for the auto-completion to have a non-nil `forester_current_config`
Expand Down
2 changes: 2 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ end

-- https://github.com/LunarVim/Neovim-from-scratch/blob/master/lua/user/keymaps.lua

local opts = { noremap = true, silent = true }

local keymap = vim.keymap.set

-- Modes
Expand Down
1 change: 1 addition & 0 deletions trees/uts-002F.tree
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ I'm a bit rusty on Vim mode of VS Code, here are some useful keys that I like us
- `<leader>+e` to toggle file explorer on the left
- `<leader>+f` to fuzzy find files
- `gd`: go to definition
- ctrl+click also works, note that it's not cmd+click on mac
- `<C+o>`: go back, `<C+i>`: go forward
`:jum` to see the jump history
- `gf`: go to file
Expand Down

0 comments on commit 420d402

Please sign in to comment.