Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

kickstart.nvim & try zed #2

Merged
merged 4 commits into from
Sep 11, 2024
Merged

kickstart.nvim & try zed #2

merged 4 commits into from
Sep 11, 2024

Conversation

thaodt
Copy link
Owner

@thaodt thaodt commented Sep 11, 2024

  • use kickstart.nvim instead of my custom setup.
  • experimenting Zed editor.

Summary by Sourcery

Switch to kickstart.nvim for Neovim configuration, replacing the previous custom setup. Add configuration files for the Zed editor, including settings and keymap. Introduce documentation and licensing for the new setup.

New Features:

  • Introduce kickstart.nvim as the new Neovim configuration setup, replacing the previous custom setup.
  • Add Zed editor configuration files, including settings and keymap JSON files.

Enhancements:

  • Include a README.md for kickstart.nvim to provide installation and setup instructions.
  • Add a LICENSE.md file for the Neovim configuration, specifying the MIT License.

Documentation:

  • Add comprehensive documentation in the README.md for kickstart.nvim, detailing installation steps, dependencies, and configuration tips.

Copy link

sourcery-ai bot commented Sep 11, 2024

Reviewer's Guide by Sourcery

This pull request replaces the existing Neovim configuration with the kickstart.nvim setup, and adds configuration for the Zed editor. The changes involve a complete overhaul of the Neovim configuration structure, adopting a more standardized and modular approach provided by kickstart.nvim. Additionally, it introduces basic configuration for the Zed editor.

File-Level Changes

Change Details Files
Replaced existing Neovim configuration with kickstart.nvim setup
  • Removed numerous custom plugin configurations and lua files
  • Added new kickstart.nvim files including init.lua, plugins, and health checks
  • Updated plugin list in lazy-lock.json
  • Added README.md and LICENSE.md for kickstart.nvim
.config/nvim/init.lua
.config/nvim/lazy-lock.json
.config/nvim/README.md
.config/nvim/LICENSE.md
.config/nvim/lua/kickstart/plugins/debug.lua
.config/nvim/lua/kickstart/plugins/gitsigns.lua
.config/nvim/lua/kickstart/plugins/lint.lua
.config/nvim/lua/kickstart/health.lua
.config/nvim/lua/kickstart/plugins/neo-tree.lua
.config/nvim/lua/kickstart/plugins/autopairs.lua
.config/nvim/lua/kickstart/plugins/indent_line.lua
.config/nvim/lua/custom/plugins/init.lua
Added Zed editor configuration
  • Created settings.json for Zed editor preferences
  • Added keymap.json for Zed key bindings
.config/zed/settings.json
.config/zed/keymap.json
Updated Neovim styling configuration
  • Added .stylua.toml for Lua code formatting in Neovim
.config/nvim/.stylua.toml

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

@thaodt thaodt merged commit e23018d into main Sep 11, 2024
@thaodt
Copy link
Owner Author

thaodt commented Sep 11, 2024

@sourcery-ai review

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @thaodt - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider reviewing the removed custom plugins and configurations to ensure no critical functionality is lost in the transition to kickstart.nvim.
  • The addition of Zed editor configuration alongside Neovim is interesting. Consider documenting the reasons for maintaining multiple editor setups if this is intended for long-term use.
Here's what I looked at during the review
  • 🟡 General issues: 3 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟡 Documentation: 2 issues found

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

--
--]]

local check_version = function()
Copy link

Choose a reason for hiding this comment

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

issue: Resolve duplication between health.lua files

There are two nearly identical health.lua files added in different locations. Consider consolidating these into a single file or ensuring they are intentionally different and clearly documented as such.

dependencies = { 'hrsh7th/nvim-cmp' },
config = function()
require('nvim-autopairs').setup {}
-- If you want to automatically add `(` after selecting a function or method
Copy link

Choose a reason for hiding this comment

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

suggestion: Consider making the autopairs configuration more flexible

The current setup always enables the automatic addition of parentheses after function selection. Consider making this configurable, allowing users to opt-in or opt-out of this feature easily.

},
cmd = 'Neotree',
keys = {
{ '\\', ':Neotree reveal<CR>', { desc = 'NeoTree reveal' } },
Copy link

Choose a reason for hiding this comment

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

suggestion: Reconsider the keybinding for NeoTree reveal

The backslash key might not be the most intuitive choice for revealing NeoTree. Consider using a more standard key combination that aligns with common Neovim practices, such as e or .

Suggested change
{ '\\', ':Neotree reveal<CR>', { desc = 'NeoTree reveal' } },
{ '<leader>e', ':Neotree reveal<CR>', { desc = 'NeoTree reveal' } },


You likely want to remove `lazy-lock.json` from your fork's `.gitignore` file
too - it's ignored in the kickstart repo to make maintenance easier, but it's
[recommmended to track it in version control](https://lazy.folke.io/usage/lockfile).
Copy link

Choose a reason for hiding this comment

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

suggestion (documentation): Fix typo: 'recommmended' should be 'recommended'

Suggested change
[recommmended to track it in version control](https://lazy.folke.io/usage/lockfile).
[recommended to track it in version control](https://lazy.folke.io/usage/lockfile).

### Install External Dependencies

External Requirements:
- Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`)
Copy link

Choose a reason for hiding this comment

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

suggestion (documentation): Consider mentioning that some dependencies may already be installed

It might be helpful to note that some of these dependencies, especially basic utils, might already be present on many systems. This could prevent unnecessary installations.

Suggested change
- Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`)
Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`) (Note: Some of these may already be installed on your system)

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @thaodt - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 3 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟡 Documentation: 2 issues found

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

P.S. You can delete this when you're done too. It's your config now! :)
--]]

-- Set <space> as the leader key
Copy link

Choose a reason for hiding this comment

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

suggestion: Consider adding a comment explaining the 'leader key' concept

-- The 'leader key' is a prefix key used for custom shortcuts
-- It's a way to create a namespace for personal mappings
-- Set <space> as the leader key
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '


-- [[ Install `lazy.nvim` plugin manager ]]
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
Copy link

Choose a reason for hiding this comment

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

suggestion: Add a brief comment explaining the purpose of lazy.nvim

-- Define the path for lazy.nvim, a modern plugin manager for Neovim
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'

--
--]]

local check_version = function()
Copy link

Choose a reason for hiding this comment

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

issue: Resolve duplication between health.lua files

This health.lua file is very similar to the one in .config/nvim/lua/kickstart/health.lua, but with some differences in the version checking logic. Consider unifying these files or clearly documenting why they are different to avoid confusion and maintenance issues.


You likely want to remove `lazy-lock.json` from your fork's `.gitignore` file
too - it's ignored in the kickstart repo to make maintenance easier, but it's
[recommmended to track it in version control](https://lazy.folke.io/usage/lockfile).
Copy link

Choose a reason for hiding this comment

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

suggestion (documentation): Fix typo: 'recommmended' should be 'recommended'

Suggested change
[recommmended to track it in version control](https://lazy.folke.io/usage/lockfile).
[recommended to track it in version control](https://lazy.folke.io/usage/lockfile).

### Install External Dependencies

External Requirements:
- Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`)
Copy link

Choose a reason for hiding this comment

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

suggestion (documentation): Consider mentioning that some dependencies may already be installed

It might be helpful to note that some of these dependencies, especially basic utils, might already be present on many systems. This could prevent unnecessary installations.

Suggested change
- Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`)
Basic utils: `git`, `make`, `unzip`, C Compiler (`gcc`) (Note: Some of these may already be installed on your system)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant