Giter VIP home page Giter VIP logo

nvim-config's Introduction

Last commit

Preview

πŸ“„ Requirements

Before you dive in, ensure you have the following requirements installed:

Click to see the requirements

In windows, you can use scoop to install them.

πŸ’» Installation

Please follow these steps:

  1. Preparation:

    • Ensure that Neovim is not running.
    • Remove or move your current nvim directory (if it exists).
  2. Installation:

    • On Linux/MacOS:

      bash <(curl -s https://raw.githubusercontent.com/Alexis12119/nvim-config/main/installer/install.sh)
    • On Windows (Powershell):

      Invoke-WebRequest https://raw.githubusercontent.com/Alexis12119/nvim-config/main/installer/install.ps1 -UseBasicParsing | Invoke-Expression

✨ Features

🌟 Stargazers

I appreciate the support from all the Stargazers!

Stargazers

CREDITS

This Neovim configuration is built upon the foundation of NvChad. Special thanks to the NvChad community and developers for their fantastic work.

β€œMake it work, make it right, make it fast.”

- Kent Beck


nvim-config's People

Contributors

alexis12119 avatar anthonydmays avatar kevinnitrog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nvim-config's Issues

feat request: migrate to `nvimtools/none-ls.nvim`

Hi, it has been a while since jose-elias-alvarez/null-ls.nvim has been archived, nvimtools/none-ls.nvim came after that. The none-ls.nvim community has grown up and may soon overtake stevearc/conform.nvim and mfussenegger/nvim-lint. Do you think it is worth to migrate?

bug: conflict format between `prettier` and `typescript-tools`?

If I comment these lines in conform.lua, it will use typescript-tools to format. Otherwise it conflicts?

Huhm is it possible to use prettier to format and disable format capability of typescript-tools 🫠?

I tried to add opts.settings.tsserver_format_options = {} in pmizio/typescript-tools.nvim but it doesn't disable typescript-tools format capability.

Thank you.

feat request: toggle spell-checking

Hi, could you implement a scheme to toggle spell-checking? Also, I have a question, I don't know which plugin is in charge of checking spelling. πŸ˜„

Thank you.

Request: Custom `statusline` module (`total_lines`)

Hi again 😁. The statusline renders wrong when I set statusline.separator_style = default. It isn't round. Here is the image of the situation.

image

I have tried to set default_sep_icons.default = default_sep_icons.round in statusline.modules.total_lines but it still doesn't work. =))

Thank you. Your config is very nice. I would stay here for long time, because it has a nice look from NvChad but very clean keymaps setup.

request: change structure in `lua/plugins/lsp/configs/conform.lua`

Hellouu

I think the local formatters = { ... } in lua/plugins/lsp/configs/conform.lua should be renamed to local formatters_by_ft = { ... } or something. Because there is another field in opts name formatters for customising the formatters. Like change formatters args, commands,...

local formatters = {
lua = { "stylua" },
python = { "autopep8" },
cpp = { "clang_format" },
c = { "clang_format" },
go = { "gofumpt" },
cs = { "csharpier" },
yaml = { "yamlfmt" },
}

formatters[filetype] = { "prettier" }

Note

Read more about that field at stevearc/conform.nvim#options


This is my current config with the change I said.

local formatters_by_ft = {
  lua = { "stylua" },
  python = {
    "ruff_fix",
    "ruff_format",
  },
  cpp = { "clang_format" },
  c = { "clang_format" },
  go = { "gofumpt" },
  cs = { "csharpier" },
  sh = { "shfmt" },
}

local prettier_ft = {
  "css",
  "flow",
  "graphql",
  "html",
  "json",
  "javascriptreact",
  "javascript",
  "less",
  "markdown",
  "scss",
  "typescript",
  "typescriptreact",
  "vue",
  "yaml",
}

for _, filetype in pairs(prettier_ft) do
  formatters_by_ft[filetype] = { "prettier" }
end

local formatters = {
  clang_format = { append_args = { "--fallback-style=Microsoft" } },
  ruff_fix = { append_args = { "--select=I", "--ignore=F401" } },
}

return {
  -- NOTE: Formatting
  "stevearc/conform.nvim",
  event = "User FilePost",
  opts = {
    format_after_save = {
      async = true,
    },
    format_on_save = {
      -- These options will be passed to conform.format()
      quiet = true,
      lsp_fallback = true,
    },
    formatters_by_ft = formatters_by_ft,
    formatters = formatters,
  },
}

bug: broken config

In the commit dfd898ffcfdbc836bc1f87c150858f9ae8c61e23 (feat: adjust on 0.11), in line 66 of nvim-lspconfig.lua, you haven't handle the case if it is not 0.11, the config.signs hasn't been create yet so it cannot bind config.signs.active

 ξͺ‡  Error  8:12:11 PM notify.error lazy.nvim Failed to run `config` for nvim-lspconfig

...ta/Local/nvim/lua/plugins/lsp/configs/nvim-lspconfig.lua:66: attempt to index field 'signs' (a nil value)

# stacktrace:
  - lua/plugins/lsp/configs/nvim-lspconfig.lua:66 _in_ **config**
  - NvChad\lua\nvchad\autocmds.lua:58
  - vim\_editor.lua:431
  - telescope.nvim\lua\telescope\actions\set.lua:200 _in_ **run_replace_or_original**
  - telescope.nvim\lua\telescope\actions\mt.lua:65 _in_ **run_replace_or_original**
  - telescope.nvim\lua\telescope\actions\mt.lua:65 _in_ **run_replace_or_original**
  - telescope.nvim\lua\telescope\actions\mt.lua:65 _in_ **key_func**
  - telescope.nvim\lua\telescope\mappings.lua:293

Edit: I changed the title because I didn't mean to offense you πŸ˜₯ Sorry for my bad English

bug: always reload `lua_ls` libraries references

I don't know how to say it, perhaps it's called "libraries", "references"? Could you watch this video and check it does it happen to yours too?

Video

just type vim. and then every time I save the file? it will reload the "libraries references"? If it is a problem, I guess... maybe it comes from folke/lazydev.nvim and luvit-meta/library you have just added in 8915329466d121a4c73d6405a73d21a14f6c4434

bug: nvchad tabufline error when using lsp code action

Hello again πŸ˜Άβ€πŸŒ«οΈ I have faced this issue many times whenever I use LSP code action, the tabufline will ... crash. I guess it's from NVChad tabufline's issue. I haven't tested on Linux yet. Currently, my Windows gets this error.

https://github.com/Alexis12119/nvim-config/assets/86353526/896ba2d2-7ed9-4215-b858-70fd1fac9455

Log from NoiceHistory:

6:49:37 PM msg_show stack traceback:
6:49:37 PM msg_show ^I[C]: in function 'buf_name'
6:49:37 PM msg_show ^I...-alexis12119-data/lazy/ui/lua/nvchad/tabufline/utils.lua:37: in function 'gen_unique_name'
6:49:37 PM msg_show ^I...-alexis12119-data/lazy/ui/lua/nvchad/tabufline/utils.lua:51: in function 'style_buf'
6:49:37 PM msg_show ^I...lexis12119-data/lazy/ui/lua/nvchad/tabufline/modules.lua:74: in function <...lexis12119-data/lazy/ui/lua/nvchad/tabufline/modules.lua:60>
6:49:37 PM msg_show ^I...lexis12119-data/lazy/ui/lua/nvchad/tabufline/modules.lua:117: in function <...lexis12119-data/lazy/ui/lua/nvchad/tabufline/modules.lua:107>
6:49:37 PM msg_show E15: Invalid expression: "v:lua.require('nvchad.tabufline.modules')()"
6:49:37 PM msg_show ...-alexis12119-data/lazy/ui/lua/nvchad/tabufline/utils.lua:37: Invalid buffer id: 15
6:49:37 PM msg_show stack traceback:
6:49:37 PM msg_show ^I[C]: in function 'buf_name'
6:49:37 PM msg_show ^I...-alexis12119-data/lazy/ui/lua/nvchad/tabufline/utils.lua:37: in function 'gen_unique_name'
6:49:37 PM msg_show ^I...-alexis12119-data/lazy/ui/lua/nvchad/tabufline/utils.lua:51: in function 'style_buf'
6:49:37 PM msg_show ^I...lexis12119-data/lazy/ui/lua/nvchad/tabufline/modules.lua:74: in function <...lexis12119-data/lazy/ui/lua/nvchad/tabufline/modules.lua:60>
6:49:37 PM msg_show ^I...lexis12119-data/lazy/ui/lua/nvchad/tabufline/modules.lua:117: in function <...lexis12119-data/lazy/ui/lua/nvchad/tabufline/modules.lua:107>
6:49:37 PM msg_show ^I[C]: in function 'nvim_exec2'
6:49:37 PM msg_show ^Ivim/_editor.lua:431: in function 'cmd'
6:49:37 PM msg_show ^I...s12119-data/lazy/nvim-notify/lua/notify/service/init.lua:63: in function 'push'
6:49:37 PM msg_show ^I...lexis12119-data/lazy/nvim-notify/lua/notify/instance.lua:77: in function <...lexis12119-data/lazy/nvim-notify/lua/notify/instance.lua:41>
6:49:37 PM msg_show ^I...9-data/lazy/noice.nvim/lua/noice/view/backend/notify.lua:169: in function '_notify'
6:49:37 PM msg_show ^I...9-data/lazy/noice.nvim/lua/noice/view/backend/notify.lua:199: in function 'show'
6:49:37 PM msg_show ^I...alexis12119-data/lazy/noice.nvim/lua/noice/view/init.lua:148: in function <...alexis12119-data/lazy/noice.nvim/lua/noice/view/init.lua:146>
6:49:37 PM msg_show ^I[C]: in function 'xpcall'
6:49:37 PM msg_show ^I...alexis12119-data/lazy/noice.nvim/lua/noice/util/call.lua:149: in function <...alexis12119-data/lazy/noice.nvim/lua/noice/util/call.lua:134>
6:49:37 PM msg_show ^I...alexis12119-data/lazy/noice.nvim/lua/noice/view/init.lua:154: in function 'display'
6:49:37 PM msg_show ^I...s12119-data/lazy/noice.nvim/lua/noice/message/router.lua:223: in function <...s12119-data/lazy/noice.nvim/lua/noice/message/router.lua:156>
6:49:37 PM msg_show ^I[C]: in function 'xpcall'
6:49:37 PM msg_show ^I...alexis12119-data/lazy/noice.nvim/lua/noice/util/call.lua:149: in function <...alexis12119-data/lazy/noice.nvim/lua/noice/util/call.lua:134>
6:49:37 PM msg_show ^I[C]: in function 'pcall'
6:49:37 PM msg_show ^I...alexis12119-data/lazy/noice.nvim/lua/noice/util/init.lua:146: in function 'fn'
6:49:37 PM msg_show ^Ivim/_editor.lua:599: in function 'fn'
6:49:37 PM msg_show ^Ivim/_editor.lua:351: in function <vim/_editor.lua:350>

Log in noice.log:

25/05/24 6:49:37 PM
vim/_editor.lua:431: nvim_exec2(): Vim(redraw):E15: Invalid expression: "v:lua.require('nvchad.tabufline.modules')()"

stack traceback:
	[C]: in function 'pcall'
	...alexis12119-data/lazy/noice.nvim/lua/noice/util/call.lua:144: in function <...alexis12119-data/lazy/noice.nvim/lua/noice/util/call.lua:143>
	[C]: in function 'nvim_exec2'
	vim/_editor.lua:431: in function 'cmd'
	...s12119-data/lazy/nvim-notify/lua/notify/service/init.lua:63: in function 'push'
	...lexis12119-data/lazy/nvim-notify/lua/notify/instance.lua:77: in function <...lexis12119-data/lazy/nvim-notify/lua/notify/instance.lua:41>
	...9-data/lazy/noice.nvim/lua/noice/view/backend/notify.lua:169: in function '_notify'
	...
	[C]: in function 'xpcall'
	...alexis12119-data/lazy/noice.nvim/lua/noice/util/call.lua:149: in function <...alexis12119-data/lazy/noice.nvim/lua/noice/util/call.lua:134>
	...alexis12119-data/lazy/noice.nvim/lua/noice/view/init.lua:154: in function 'display'
	...s12119-data/lazy/noice.nvim/lua/noice/message/router.lua:223: in function <...s12119-data/lazy/noice.nvim/lua/noice/message/router.lua:156>
	[C]: in function 'xpcall'
	...alexis12119-data/lazy/noice.nvim/lua/noice/util/call.lua:149: in function <...alexis12119-data/lazy/noice.nvim/lua/noice/util/call.lua:134>
	[C]: in function 'pcall'
	...alexis12119-data/lazy/noice.nvim/lua/noice/util/init.lua:146: in function 'fn'
	vim/_editor.lua:599: in function 'fn'
	vim/_editor.lua:351: in function <vim/_editor.lua:350>

PS: My NVIM_APPNAME = nvim-alexis12119

1

looked at the other branch

Feat Request: Show mark in code line sidebar

Hi. Could you implement to make the mark shown in code line sidebar in your free time? Here is an example from LazyVim <3

image

If it seems to break your config style, then could you make it togglable to show? πŸ˜…

Thank you.

How to customize formatting?

I used your neovim configuration, but I don’t know how to use the null-ls plugin to format my c++ code. The default is to use 2 indents, and I want to change it to 4 indents. How does the :Format command work? Is the formatting of lsp called by default?

bug: marks doesn't show on statuscol

As I mentioned in my recent PR #9, the marks don't show up πŸ˜…. I found that if I remove opts.segments of luukvbaal/statuscol.nvim in lua/plugins/nvim-ufo.lua, the marks can show up.

There may be a conflict between them I guess. Currently, I have checked that the marks can show up in markdown file, other script files, even the config file cannot.

Here is the image. On the left is txt file, and on the right is markdown file.
image

request remove `lazy-lock.json` in repo

Hi, I just wanna suggest removing lazy-lock.json to easily sync (merge) your repo as upstream to other users' repos. Or do I misunderstand your purpose? πŸ« πŸ˜Άβ€πŸŒ«οΈ

feat request: pre-config `actionlint` for `nvim-lint`

Hi (:

I think you want your nvim config to serve all kinds of coder/dev and want to make it easy to config. So I think it would be nice to pre-config actionlint in the nvim-lint plugin. It wouldn't matter if the actionlint isn't installed while nvim-lint is enabled (no error show). And if anyone wants to set up actionlint, they just need to install the executable (via Mason...).

Here is my current config:


If you want, I can create a PR for you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.