Skip to content

santh-cpu/my-nvim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

santh's neovim config

catppuccin mocha · lazy.nvim · lsp · treesitter · harpoon · telescope


install

macos / linux

mv ~/.config/nvim ~/.config/nvim.bak 2>/dev/null
cp -r /path/to/nvim ~/.config/nvim
nvim

windows (powershell)

Move-Item "$env:LOCALAPPDATA\nvim" "$env:LOCALAPPDATA\nvim.bak" -ErrorAction SilentlyContinue
Copy-Item -Recurse "C:\path\to\nvim" "$env:LOCALAPPDATA\nvim"
nvim

plugins

lazy.nvim         — plugin manager
catppuccin        — colorscheme (mocha)
alpha-nvim        — dashboard
neo-tree.nvim     — file explorer
bufferline.nvim   — buffer tabs
lualine.nvim      — statusline
telescope.nvim    — fuzzy finder
nvim-treesitter   — syntax + indent
nvim-lspconfig    — lsp client
mason.nvim        — installer
mason-lspconfig   — bridge
nvim-cmp          — autocompletion
luasnip           — snippets
nvim-autopairs    — auto brackets
conform.nvim      — format on save
nvim-lint         — linting
gitsigns.nvim     — git indicators
harpoon           — navigation
persistence.nvim  — sessions
which-key.nvim    — key hints

language support

lsp

python       → pyright
rust         → rust_analyzer
c / c++      → clangd
go           → gopls
js / ts      → tsserver
java         → jdtls

formatters

python       → black
js / ts      → prettier
rust         → rustfmt
c / c++      → clang-format
java         → google-java-format
go           → goimports

linters

js / ts      → eslint
python       → flake8, pylint
c / c++      → clang-tidy

treesitter

c cpp python rust java javascript typescript lua bash json html css

keybindings

leader = space

editor

<leader>w   — save
<leader>q   — quit
h           — line start
l           — line end
<leader>gg  — top
<leader>g   — bottom

windows

<c-h/j/k/l> — move splits
<a-h>       — shrink width
<a-l>       — grow width
<a-j>       — shrink height
<a-k>       — grow height

explorer

<leader>e   — toggle

telescope

<leader>ff  — files
<leader>fg  — grep
<leader>fb  — buffers
<leader>fh  — help

harpoon

<leader>a   — add
<leader>h   — menu
<leader>1   — file 1
<leader>2   — file 2
<leader>3   — file 3
<leader>4   — file 4

lsp

gd          — definition
gD          — declaration
gi          — implementation
gr          — references
k           — hover
<leader>rn  — rename
<leader>ca  — code action
[d          — prev diagnostic
]d          — next diagnostic
<leader>de  — float

sessions

<leader>s   — restore
<leader>S   — last
<leader>ss  — pick

formatting

<leader>f   — format
<leader>l   — lint

run

<leader>r   — run

python rust node typescript c cpp java

dashboard

f   — file
g   — grep
r   — recent
s   — session
n   — new
q   — quit

options

number relativenumber
tabstop=4 shiftwidth=4
smartindent nowrap
cursorline scrolloff=8
clipboard=unnamedplus
updatetime=200
timeoutlen=400
signcolumn=yes

diagnostics

virtual text prefix ●
signs and underline enabled
no update in insert mode
sorted by severity
rounded float borders

About

my custom config fitted to my needs . feel free to steal it .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages