this post was submitted on 31 Dec 2024
12 points (87.5% liked)

Linux

48838 readers
1515 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

After failing to get some plugins to work with VS Code I decided that perhaps a simpler editor like Neovim would be a nice candidate for simple programs. after watching a few tutorials and getting myself familiar with the plugin manager ecosystem, I decided to settle on vim-plug.

The thing is, I can't get Mason to work at all. People recommended it as a simple solution for managing LSPs and it seemed reasonable enough to try. Mason installs, but no Mason-specific command is recognized by Neovim. I can launch the UI manually with require("mason.ui").open(), but that's that. No list of LSPs I can download, just a blank UI. I have tried reinstalling, downloading an older version, sanity checking everything 10 times. All other plugins I have work as expected. The only other thing which doesn't seem to work is showcmd which, in theory, should suggest commands as I type them out.

I can't find any open issue on github regarding this problem. Google search didn't yield any useful results. My only guess would be that there needs to be a specific order in which I have to load/initialize this plugin.

Here is what my files look like:

  1. init.vim
call plug#begin()
Plug 'williamboman/mason.nvim'
Plug 'williamboman/mason-lspconfig.nvim'
Plug 'neovim/nvim-lspconfig'

-- then some other stuff like `Telescope` 
--     which has no interaction with `Mason`
  1. init.lua (the whole file)
require("mason").setup()
require("mason-lspconfig").setup()

require("telescope").load_extension("file_browser")
require("telescope").load_extension("project")
require("telescope").load_extension("ui-select")
require("telescope").load_extension("frecency")
require("telescope").load_extension("media_files")

require('nvim-web-devicons').setup()
require('mini.icons').setup()

Any ideas or suggestions besides trying lazy-vim or another plugin manager? Tnx!

top 4 comments
sorted by: hot top controversial new old
[–] imouto@lemmy.world 2 points 4 days ago (1 children)

Do you not get an error like 'E5422: Conflicting configs: "/data/data/com.termux/files/home/.config/nvim/init.lua" "/data/data/com.termux/files/home /.config/nvim/init.vim"'? IIRC you have to choose either vimscript or lua to write the init RC

[–] some_random_nick@lemmy.world 1 points 4 days ago (1 children)

No, no conflict whatsoever. Just an error mesaage that the command is not recognized/present. Telescope works just fine. The colorscheme as well.

[–] imouto@lemmy.world 1 points 4 days ago (1 children)

Hmm... Does :checkhealth mason or just :checkhealth complain about anything?

[–] some_random_nick@lemmy.world 1 points 4 days ago

No, it works just fine. It finds Mason and does the check ehich returns OK results except the add-ons for specific languages (e.g. it deteckts python3, complains about misisng rails etc.)