Skip to content

Feature/nvim lua config#11

Merged
kshiozaw merged 14 commits intomasterfrom
feature/nvim-lua-config
Feb 10, 2026
Merged

Feature/nvim lua config#11
kshiozaw merged 14 commits intomasterfrom
feature/nvim-lua-config

Conversation

@kshiozaw
Copy link
Copy Markdown
Owner

@kshiozaw kshiozaw commented Feb 7, 2026

neovimの設定のlua化とプラグインの見直し

@kshiozaw kshiozaw requested a review from Copilot February 7, 2026 09:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the Neovim configuration from Vimscript + dein to a Lua-based setup using lazy.nvim, introducing Lua modules for options and plugin configurations.

Changes:

  • Replace dein/Vimscript configs with lazy.nvim bootstrap and Lua-based plugin specs
  • Add Lua config modules for editor options, LSP (mason/lspconfig/none-ls), and nvim-cmp
  • Update README to reflect the new setup and references

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
nvim/init.lua Bootstraps lazy.nvim and loads Lua options module
nvim/lua/config/options.lua New Lua-based Neovim option + keymap + diagnostic configuration
nvim/lua/plugins/lsp_config.lua Adds mason/lspconfig + none-ls integration and tooling setup
nvim/lua/plugins/nvim-cmp.lua Adds completion configuration via nvim-cmp
nvim/lua/plugins/vim-airline.lua Adds vim-airline plugin spec + globals
nvim/lua/plugins/vim-gitgutter.lua Adds gitgutter plugin spec, keymap, and highlight customization
nvim/lua/plugins/vim-highlightedyank.lua Adds highlightedyank plugin spec and highlight config
nvim/lua/plugins/copilot.lua Adds GitHub Copilot Vim plugin spec
nvim/lua/plugins/vim-devicons.lua Adds devicons plugin spec
nvim/lua/plugins/vim-devocons.lua Adds a second devicons spec under a misspelled filename
nvim/README.md Removes old setup steps and adds reference links
nvim/rc/dein_personal.toml Removes dein TOML plugin list
nvim/init_work.vim Removes Vimscript-based config
nvim/init_personal.vim Removes Vimscript-based config

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread nvim/lua/plugins/lsp_config.lua Outdated
Comment on lines +50 to +56
"mason-org/mason.nvim",
dependencies = {
"mason-org/mason-lspconfig.nvim",
"neovim/nvim-lspconfig",
"jay-babu/mason-null-ls.nvim",
"nvimtools/none-ls.nvim",
},
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Mason plugin is referenced as mason-org/mason.nvim / mason-org/mason-lspconfig.nvim here, but later the config also depends on williamboman/mason.nvim (see the second plugin spec). This inconsistency can lead to installing/configuring two different Mason repos (or failing to resolve dependencies), and makes it unclear which one should be authoritative. Standardize on a single Mason repo naming across all specs and dependencies.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot
fixed?
b4dbfc7

Comment thread nvim/lua/plugins/lsp_config.lua Outdated
Comment on lines +15 to +34
cmp.setup({
snippet = {
expand = function(args)
vim.fn["vsnip#anonymous"](args.body)
end,
},
mapping = cmp.mapping.preset.insert({
["<C-b>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.abort(),
["<CR>"] = cmp.mapping.confirm({ select = true }),
}),
sources = cmp.config.sources({
{ name = "nvim_lsp" },
{ name = "vsnip" },
}, {
{ name = "buffer" },
}),
})
Copy link

Copilot AI Feb 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file calls cmp.setup(...) multiple times (base setup, window config, and later formatting), and also configures cmdline completion twice. Multiple cmp.setup invocations are hard to reason about and can override earlier settings depending on how nvim-cmp merges config. Consolidate into a single cmp.setup containing snippet, window, mapping, sources, and formatting, and keep each cmp.setup.cmdline(...) configuration defined only once.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

Comment thread nvim/lua/plugins/vim-devocons.lua Outdated
Comment thread nvim/README.md Outdated
kshiozaw and others added 4 commits February 11, 2026 02:40
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI commented Feb 10, 2026

@kshiozaw I've opened a new pull request, #13, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown

Copilot AI commented Feb 10, 2026

@kshiozaw I've opened a new pull request, #14, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown

Copilot AI commented Feb 10, 2026

@kshiozaw I've opened a new pull request, #15, to work on those changes. Once the pull request is ready, I'll request review from you.

@kshiozaw kshiozaw merged commit b275a68 into master Feb 10, 2026
@kshiozaw kshiozaw deleted the feature/nvim-lua-config branch February 10, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants