Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

update #1

Merged
merged 65 commits into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
6f6f38a
Move LspDetach handler near kickstart-lsp-highlight group (#900)
dam9000 May 2, 2024
9fb3891
Merge 'upstream' Move LspDetach handler near kickstart-lsp-highlight …
dam9000 May 2, 2024
f86f18f
Add diff to treesitter's ensure_installed languages (#908)
rmacklin May 6, 2024
f28bfcd
Merge 'upstream' Add diff to treesitter's ensure_installed languages
dam9000 May 6, 2024
b9bd02d
fix: debug.lua (#918)
smiggiddy May 8, 2024
bd53ce0
Merge 'upstream' fix: debug.lua
dam9000 May 8, 2024
5aeddfd
Automatically set detached state as needed. (#925)
PerMalmberg May 10, 2024
01a18a1
Merge 'upstream' debug.lua: Automatically set detached state as needed.
dam9000 May 10, 2024
f5c9195
which-key v3 update (#1022)
VlaDexa Jul 16, 2024
3e55ff1
fix(lazy): added error handling for bootstrap (#1001)
folke Jul 16, 2024
64597b0
Merge 'upstream' which-key v3 update
dam9000 Jul 17, 2024
a6442e8
Merge 'upstream' fix(lazy): added error handling for bootstrap
dam9000 Jul 17, 2024
2df5137
fix: add required parsers from nvim-treesitter
tjdevries Jul 18, 2024
202910d
Fix neo-tree keymap description (#932)
dam9000 Jul 21, 2024
1cdf6fb
Remove redundant require (#959)
tjkuson Jul 21, 2024
4bbca64
Make debug lazy loadable (#978)
VlaDexa Jul 21, 2024
c405d3f
Update README.md | %userprofile%\appdata\local -> %localappdata% (#963)
MZhuvka Jul 21, 2024
b36d84d
Make conform.nvim be lazy-loadable again (#977)
VlaDexa Jul 21, 2024
07a9f44
Fix comment about mini.ai example (#985)
rmacklin Jul 21, 2024
7513ec8
Neovim 0.10 updates (#936)
VlaDexa Jul 22, 2024
6207327
Update lazydev config to fix "Undefined field `fs_stat`" LSP error (#…
rmacklin Jul 22, 2024
6f3fe35
lint: fix lsp warning in `vim.lsp.inlay_hint.is_enabled` (#947)
srdtrk Jul 22, 2024
56b9114
Update comment about the toggle inlay hints keymap (#1041)
rmacklin Jul 22, 2024
e1d6094
Merge 'upstream' Neovim 0.10 updates and more
dam9000 Jul 22, 2024
f00b286
Remove redundant hlsearch option (#1058)
rivenirvana Jul 28, 2024
1cef232
Modify conform comments to prevent deprecation warning when used (#1057)
igniscyan Jul 28, 2024
5a2930f
Merge 'upstream' conform warning, redundant hlsearch
dam9000 Jul 28, 2024
fd66454
refactor: remove lazydev and luvit-meta as lsp dependencies (#1047)
iton0 Jul 28, 2024
84cc123
performance: defer clipboard because xsel and pbcopy can be slow (#1049)
abeldekat Jul 28, 2024
0a274ab
Merge 'upstream' refactor lazydev, defer clipboard
dam9000 Jul 29, 2024
bb9f84c
Remove treesitter prefer_git option (#1061)
jstrot Jul 30, 2024
1860184
Add explicit dependency of nvim-lspconfig on cmp-nvim-lsp (#1042)
jstrot Jul 30, 2024
198460c
Merge 'upstream' nvim-lspconfig cmp-nvim-lsp, treesitter prefer_git
dam9000 Jul 31, 2024
c1ae909
Update README.md (#1091)
theoboldalex Aug 22, 2024
554a054
Add note in README about lazy-lock.json (#1090)
mattgallagher92 Aug 22, 2024
ce0c734
Check for loop or uv for lazypath (#1095)
mike-jl Aug 22, 2024
ac78e7d
refactor: update treesitter and which-key config (#1068)
iton0 Aug 23, 2024
e921346
Merge 'upstream' refactor treesitter, which-key, uv/loop, update README
dam9000 Aug 23, 2024
d452633
Include visual mode in LSP code action keymap (#1060) (#1064)
bayramkzk Aug 24, 2024
0692979
Merge 'upstream' Include visual mode in LSP code action keymap
dam9000 Aug 25, 2024
f49cc6c
Enable silent option for default neo-tree plugin keybinding (#1108)
bayramkzk Aug 26, 2024
e4a5300
Fix: updated the windows installation commands (#1101)
pantharshit007 Aug 26, 2024
c76c323
fix: remove deprecated opt for conform.nvim (#1070)
iton0 Aug 26, 2024
7d83a27
Merge 'upstream' conform, readme, neo-tree silent
dam9000 Aug 26, 2024
24d368f
cleanup: refactor which-key configuration for cleaner setup (#1102)
iton0 Aug 26, 2024
7e11e8a
Merge 'upstream' cleanup: refactor which-key configuration
dam9000 Aug 26, 2024
a229761
Fix the which-key spec issue caused by recent cleanup (#1113)
dam9000 Aug 26, 2024
3a01797
Merge 'upstream' Fix the which-key spec issue caused by recent cleanup
dam9000 Aug 26, 2024
7201dc4
feat: update references of tsserver to ts_ls (#1131)
Cheveniko Sep 10, 2024
1695a1d
Merge 'upstream' feat: update references of tsserver to ts_ls
dam9000 Sep 10, 2024
4120893
fix: update lazy uninstall information link (#1148)
neitsab Sep 24, 2024
c0a254f
Merge 'upstream' fix: update lazy uninstall information link
dam9000 Sep 24, 2024
5ed1bc3
Disable linting autocmd for readonly buffers (#1202)
ccjmne Oct 30, 2024
fb7f6a1
samarth-nagar fix: lazy help tag on line 931 (#1167)
samarth-na Oct 30, 2024
d09d9bc
Change diagnostic symbols if vim.g.have_nerd_font is true (#1195)
glmlm Oct 30, 2024
be678aa
Set breakpoint icons and their highlight colors (#1194)
glmlm Oct 30, 2024
2ba39c6
Remove two because there are more than two. (#1213)
winder Oct 30, 2024
ee40a0e
Merge 'upstream' 5 changes from 2024-10-30
dam9000 Oct 31, 2024
e5dc5f6
feat: Change to prepare for upcoming deprecation of configuring diagn…
glmlm Nov 20, 2024
9dfb1b2
Fix nvim-dap not lazy loading (#1216)
kaezrr Nov 20, 2024
8d1ef97
fix: which-key comment typo (#1227)
mihasket Nov 20, 2024
46093fe
Merge 'upstream': diagnostic-signs, nvim-dap lazy, which-key typo
dam9000 Nov 20, 2024
26cad3e
Merge branch 'update' of github.com:burberrymyshirt/kickstart-modular…
burberrymyshirt Dec 7, 2024
289d68d
fixed merge to load plugins properly again
burberrymyshirt Dec 7, 2024
f1ebfaa
add phpactor and fix config after upstream merge
burberrymyshirt Dec 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ External Requirements:
- A [Nerd Font](https://www.nerdfonts.com/): optional, provides various icons
- if you have it set `vim.g.have_nerd_font` in `init.lua` to true
- Language Setup:
- If want to write Typescript, you need `npm`
- If want to write Golang, you will need `go`
- If you want to write Typescript, you need `npm`
- If you want to write Golang, you will need `go`
- etc.

> **NOTE**
Expand All @@ -48,8 +48,8 @@ Neovim's configurations are located under the following paths, depending on your
| OS | PATH |
| :- | :--- |
| Linux, MacOS | `$XDG_CONFIG_HOME/nvim`, `~/.config/nvim` |
| Windows (cmd)| `%userprofile%\AppData\Local\nvim\` |
| Windows (powershell)| `$env:USERPROFILE\AppData\Local\nvim\` |
| Windows (cmd)| `%localappdata%\nvim\` |
| Windows (powershell)| `$env:LOCALAPPDATA\nvim\` |

#### Recommended Step

Expand All @@ -61,6 +61,10 @@ fork to your machine using one of the commands below, depending on your OS.
> Your fork's url will be something like this:
> `https://github.com/<your_github_username>/kickstart-modular.nvim.git`

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).

#### Clone kickstart.nvim
> **NOTE**
> If following the recommended step above (i.e., forking the repo), replace
Expand All @@ -79,13 +83,13 @@ git clone https://github.com/burberrymyshirt/kickstart-modular.nvim.git "${XDG_C
If you're using `cmd.exe`:

```
git clone https://github.com/dam9000/kickstart-modular.nvim.git %userprofile%\AppData\Local\nvim\
git clone https://github.com/dam9000/kickstart.nvim.git "%localappdata%\nvim"
```

If you're using `powershell.exe`

```
git clone https://github.com/dam9000/kickstart-modular.nvim.git $env:USERPROFILE\AppData\Local\nvim\
git clone https://github.com/dam9000/kickstart.nvim.git "${env:LOCALAPPDATA}\nvim"
```

</details>
Expand Down Expand Up @@ -128,7 +132,7 @@ examples of adding popularly requested plugins.
`~/.local/share/nvim-kickstart`. You can apply this approach to any Neovim
distribution that you would like to try out.
* What if I want to "uninstall" this configuration:
* See [lazy.nvim uninstall](https://github.com/folke/lazy.nvim#-uninstalling) information
* See [lazy.nvim uninstall](https://lazy.folke.io/usage#-uninstalling) information
* Why is the kickstart `init.lua` a single file? Wouldn't it make sense to split it into multiple files?
* The main purpose of kickstart is to serve as a teaching tool and a reference
configuration that someone can easily use to `git clone` as a basis for their own.
Expand Down
24 changes: 24 additions & 0 deletions lua/colorschemes/plugins/setup.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-- Get the path to the current directory
local colorschemes_path = vim.fn.fnamemodify(debug.getinfo(1, 'S').source:sub(2), ':h')

-- Find all Lua files in the directory, excluding `setup.lua`
local files = vim.fn.glob(colorschemes_path .. '/*.lua', false, true)

-- Container for all plugin specifications
local plugins = {}

-- Iterate over the files and load each as a Lua module
for _, file in ipairs(files) do
local file_name = vim.fn.fnamemodify(file, ':t:r') -- Extract filename without extension
if file_name ~= 'setup' then -- Skip `setup.lua`
local success, spec = pcall(require, 'colorschemes.plugins.' .. file_name)
if success then
vim.list_extend(plugins, spec) -- Append plugin specs
else
vim.notify('Error loading colorscheme plugin: ' .. file_name, vim.log.levels.ERROR)
end
end
end

-- Return the aggregated plugins list
return plugins
1 change: 1 addition & 0 deletions lua/colorschemes/plugins/vscode-theme.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
return {

{
'Mofiqul/vscode.nvim',
priority = 999,
Expand Down
24 changes: 12 additions & 12 deletions lua/custom/plugins/bufferline.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
return {
{
'akinsho/bufferline.nvim',
version = '*',
dependencies = 'nvim-tree/nvim-web-devicons',
opts = {
options = {
numbers = 'buffer_id',
},
},
},
}
-- return {
-- {
-- 'akinsho/bufferline.nvim',
-- version = '*',
-- dependencies = 'nvim-tree/nvim-web-devicons',
-- opts = {
-- options = {
-- numbers = 'buffer_id',
-- },
-- },
-- },
-- }
7 changes: 2 additions & 5 deletions lua/keymaps.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
-- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()`

-- Set highlight on search, but clear on pressing <Esc> in normal mode
vim.opt.hlsearch = true
-- Clear highlights on search when pressing <Esc> in normal mode
-- See `:help hlsearch`
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')

-- Diagnostic keymaps
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' })
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next [D]iagnostic message' })
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = 'Show diagnostic [E]rror messages' })
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })

-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
Expand Down
22 changes: 11 additions & 11 deletions lua/kickstart/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
--]]

local check_version = function()
local verstr = string.format('%s.%s.%s', vim.version().major, vim.version().minor, vim.version().patch)
if not vim.version.cmp then
vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
return
end

if vim.version.cmp(vim.version(), { 0, 9, 4 }) >= 0 then
vim.health.ok(string.format("Neovim version is: '%s'", verstr))
else
vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
end
local verstr = tostring(vim.version())
if not vim.version.ge then
vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
return
end

if vim.version.ge(vim.version(), '0.10-dev') then
vim.health.ok(string.format("Neovim version is: '%s'", verstr))
else
vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
end
end

local check_external_reqs = function()
Expand Down
27 changes: 16 additions & 11 deletions lua/kickstart/plugins/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,21 @@ return {
end
end, { 'i', 's' }),

-- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see:
-- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
},
sources = {
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
{ name = 'path' },
},
}
end,
},
-- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see:
-- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
},
sources = {
{
name = 'lazydev',
-- set group index to 0 to skip loading LuaLS completions as lazydev recommends it
group_index = 0,
},
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
{ name = 'path' },
},
}
end,
},
}
-- vim: ts=2 sts=2 sw=2 et
79 changes: 43 additions & 36 deletions lua/kickstart/plugins/conform.lua
Original file line number Diff line number Diff line change
@@ -1,40 +1,47 @@
return {
{ -- Autoformat
'stevearc/conform.nvim',
lazy = false,
keys = {
{
'<leader>f',
function()
require('conform').format { async = true, lsp_fallback = true }
end,
mode = '',
desc = '[F]ormat buffer',
},
},
opts = {
notify_on_error = false,
format_on_save = function(bufnr)
-- Disable "format_on_save lsp_fallback" for languages that don't
-- have a well standardized coding style. You can add additional
-- languages here or re-enable it for the disabled ones.
local disable_filetypes = { c = true, cpp = true }
return {
timeout_ms = 500,
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
}
end,
formatters_by_ft = {
lua = { 'stylua' },
go = { 'gofumpt', 'golines', 'goimports' },
-- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" },
--
-- You can use a sub-list to tell conform to run *until* a formatter
-- is found.
-- javascript = { { "prettierd", "prettier" } },
},
},
{ -- Autoformat
'stevearc/conform.nvim',
event = { 'BufWritePre' },
cmd = { 'ConformInfo' },
keys = {
{
'<leader>f',
function()
require('conform').format { async = true, lsp_format = 'fallback' }
end,
mode = '',
desc = '[F]ormat buffer',
},
},
opts = {
notify_on_error = false,
format_on_save = function(bufnr)
-- Disable "format_on_save lsp_fallback" for languages that don't
-- have a well standardized coding style. You can add additional
-- languages here or re-enable it for the disabled ones.
local disable_filetypes = { c = true, cpp = true }
local lsp_format_opt
if disable_filetypes[vim.bo[bufnr].filetype] then
lsp_format_opt = 'never'
else
lsp_format_opt = 'fallback'
end
return {
timeout_ms = 500,
lsp_format = lsp_format_opt,
}
end,
formatters_by_ft = {
lua = { 'stylua' },
go = { 'gofumpt', 'golines', 'goimports' },

-- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" },
--
-- You can use 'stop_after_first' to run the first available formatter from the list
-- javascript = { "prettierd", "prettier", stop_after_first = true },
},
},
},
}
-- vim: ts=2 sts=2 sw=2 et
Loading