Skip to content

Commit 5d24fe5

Browse files
committed
feat: convert to blink, major lsp changes, lualine
1 parent 82102e5 commit 5d24fe5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1379
-701
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ nvim
55

66
spell/
77
lazy-lock.json
8+
.claude/

README.md

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,45 @@
1-
## ⚙️ My Neovim Configuration
1+
## ⚙️ My Neovim Configuration
22

33
This is my personal neovim configuration and it's unlikely to be perfect
44
for your use case.
55

66
What is in it?
77

8-
* *Kickstart*: based configuration
9-
* *Neovimacs*: modeless editing support, with common Emacs bindings in insert mode
10-
* *Esc*: to toggle between insert (emacs bindings) and normal (neovim mode)
11-
* *Tabs*: Prev (F1), Next (F2), New (F3), and Close (F4) to jump around
12-
* *Tool Tabs*: Terminal (F5)
13-
* *Movement*: Arrows and Tabs (and, yes, I know)
14-
* *Batteries*: Python LSP, completion, treesitter
8+
- _Kickstart_: based configuration
9+
- _Neovimacs_: modeless editing support, with common Emacs bindings in insert mode
10+
- _Esc_: to toggle between insert (emacs bindings) and normal (neovim mode)
11+
- _Tabs_: Prev (F1), Next (F2), New (F3), and Close (F4) to jump around
12+
- _Tool Tabs_: Terminal (F5)
13+
- _Movement_: Arrows and Tabs (and, yes, I know)
14+
- _Batteries_: Python LSP, completion, treesitter
1515

1616
## 📦 Installation
1717

1818
#### Prep
1919

20-
Suggested:
20+
Neovim >= 0.10 or later is required, you may need to get it from the Neovim PPA or similar:
2121

2222
```bash
23-
sudo apt install -y gcc python3-pip python3-venv git make unzip ripgrep gzip wget curl fd-find npm
23+
sudo add-apt-repository ppa:neovim-ppa/unstable
24+
sudo apt-get update
25+
sudo apt-get install neovim
26+
```
27+
28+
Suggested Packages:
29+
30+
```bash
31+
sudo apt install -y cargo gcc python3-pip python3-venv git make unzip ripgrep gzip wget curl fd-find npm xclip
2432
sudo npm install -g tree-sitter-cli
2533
```
2634

35+
If you have an old version of NodeJS, pick up a new one:
36+
37+
```bash
38+
sudo npm cache clean -f
39+
sudo npm install -g n
40+
sudo n stable
41+
```
42+
2743
Optional based on use-case:
2844

2945
```bash
@@ -52,9 +68,9 @@ ln -s neovimrc nvim
5268
Checking overall health and options:
5369

5470
```
55-
:CheckHealth
71+
:checkhealth
72+
:Telescope vim_options
5673
:lua print(vim.inspect(vim.opt.XXXX))
57-
:set option?
5874
```
5975

6076
Beyond [which-key](https://github.com/folke/which-key.nvim), you can use the following
@@ -65,8 +81,18 @@ nvim commands to help you track down key bindings and resolve conflicts:
6581
:verbose nmap <C-n> -- for normal mode
6682
:nmap <localleader> -- to see leader commands
6783
:WhichKey -- see above
84+
:lua = <expr> -- run lua expression
6885
```
6986

87+
Use `nvim -u NONE -U NONE -N -i NONE` to test with w/o config if things go wrong.
88+
89+
#### Recommended Visits
90+
91+
```
92+
:help <module> -- help for modules
93+
:help telescope.setup() -- help for the setup section
94+
:Telescope help_tags -- search help
95+
```
7096

7197
### References
7298

after/plugin/cmp-feedkeys-fix.lua

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
-- Fix for nvim-cmp feedkeys issue where 'lua require"cmp.utils.feedkeys".run(#)'
2+
-- gets inserted into buffers instead of being executed
3+
-- This overrides the problematic debounce_next_tick_by_keymap function
4+
5+
local ok, async = pcall(require, 'cmp.utils.async')
6+
if not ok then
7+
return
8+
end
9+
10+
-- Override the problematic function with a safer implementation
11+
async.debounce_next_tick_by_keymap = function(callback)
12+
return function()
13+
-- Use vim.schedule instead of feedkeys to avoid inserting command text
14+
vim.schedule(callback)
15+
end
16+
end
17+

after/plugin/final.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
local builtin = require 'telescope.builtin'
2+
3+
vim.keymap.set('n', '<C-s>', function()
4+
builtin.current_buffer_fuzzy_find()
5+
end)
6+
-- Use vimacs version
7+
--
8+
-- vim.keymap.set('i', '<C-s>', function()
9+
-- builtin.current_buffer_fuzzy_find()
10+
--end)

0 commit comments

Comments
 (0)