Skip to content

My Neovim configuration files , require version >= 0.8.3

License

Notifications You must be signed in to change notification settings

guxuerui/nvim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

These are my Neovim configuration files

Ensure you have installed Neovim, and the version I am currently using is 0.10.0

Requirements

  • Neovim >= v0.8.3

preview

📁 File Structure

# ~/.config/nvim
├── images
│  ├── alpha-dashboard.png
│  └── preview.png
├── init.lua
├── lazy-lock.json
├── LICENSE
├── lua
│  ├── config
│  │  ├── base.lua
│  │  ├── keymaps.lua
│  │  ├── lazy.lua
│  │  ├── options.lua
│  │  └── utils.lua
│  └── plugins
│     ├── alpha.lua
│     ├── cinnamon.lua
│     ├── colorscheme.lua
│     ├── core.lua
│     ├── diffView.lua
│     ├── gitsigns.lua
│     ├── gx.lua
│     ├── lsp.lua
│     ├── lsp_lines.lua
│     ├── lspsaga.lua
│     ├── lualine.lua
│     ├── mini.lua
│     ├── neoai.lua
│     ├── neodim.lua
│     ├── noice.lua
│     ├── null-ls.lua
│     ├── paint.lua
│     ├── persistence.lua
│     ├── print.lua
│     ├── ranger.lua
│     ├── searchbox.lua
│     ├── tabline.lua
│     ├── treesitter.lua
│     └── which-key.lua
└── README.md

⚓ TIPS

Install lsp-related plugins into lsp-zero.nvim integration

-- use lazy.nvim
return {
  {
    "VonHeikemen/lsp-zero.nvim",
    dependencies = {
      -- LSP Support
      "neovim/nvim-lspconfig",
      "williamboman/mason.nvim",
      "williamboman/mason-lspconfig.nvim",
      -- Autocompletion
      "hrsh7th/nvim-cmp",
      "hrsh7th/cmp-buffer",
      "hrsh7th/cmp-path",
      "saadparwaiz1/cmp_luasnip",
      "hrsh7th/cmp-nvim-lsp",
      "hrsh7th/cmp-nvim-lua",
      "L3MON4D3/LuaSnip",
      "rafamadriz/friendly-snippets",
      "onsails/lspkind-nvim",
    },
    config = function()
      local lsp = require("lsp-zero")
      lsp.on_attach(function(client, bufnr)
        if client.name == "tailwindcss" then
          require("tailwindcss-colors").buf_attach(bufnr)
        end
      end)
      lsp.preset("recommended")
      lsp.nvim_workspace()
      lsp.setup()
    end,
  }
}

2. Language Servers with Mason.nvim

Install lsp-related language server into Mason.nvim integration

  • bash-language-server
  • css-lsp
  • html-lsp
  • json-lsp
  • eslint-lsp
  • lua-language-server
  • dockerfile-language-server
  • emmet-ls
  • marksman
  • prisma-language-server
  • pyright
  • rust-analyzer
  • stylua
  • svelte-language-server
  • tailwindcss-language-server
  • typescript-language-server
  • vue-language-server

3. Use markdownlint for markdown file with null-ls.nvim

  • First Step
npm install -g markdownlint-cli
  • Second Step
local formatting = null_ls.builtins.formatting

null_ls.setup({
  sources = {
    formatting.markdownlint,
  }
})

About

My Neovim configuration files , require version >= 0.8.3

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages