Skip to main content

lazyvim

Fixing multiple rust-analyzer running

https://github.com/LazyVim/LazyVim/discussions/3825#discussioncomment-9937797

in ~/.config/nvim/lua/plugins add a file called mason.lua with content

return {
  {
    "neovim/nvim-lspconfig",
    opts = {
      setup = {
        rust_analyzer = function()
          return true
        end,
      },
    },
  },
}

Removing unwanted Markdown warnings

in ~/.config/nvim/lua/plugins add a file lint.lua

return {
  {
    "mfussenegger/nvim-lint",
    opts = {
      linters = {
        markdownlint = {
          args = { "--disable", "MD013", "--disable", "MD012", "--" },
        },
      },
    },
  },
}

Add prefered hidden file viewing

in ~/.config/nvim/lua/plugins add a file neo-tree.lua

return {
  "nvim-neo-tree/neo-tree.nvim",
  opts = {
    filesystem = {
      filtered_items = {
        visible = false,
        show_hidden_count = true,
        hide_dotfiles = false,
        hide_gitignored = false,
        hide_by_name = {
          -- ".git",
          -- '.DS_Store',
          -- 'thumbs.db',
        },
        never_show = {
          ".git",
        },
      },
    },
  },

Add prefered color scheme

in ~/.config/nvim/lua/plugins add colorscheme.lua

return {
  -- add gruvbox
  { "catppuccin/nvim" },

  -- Configure LazyVim to load gruvbox
  {
    "LazyVim/LazyVim",
    opts = {
      colorscheme = "catppuccin",
    },
  },
}