Compare commits
2 Commits
25a930d330
...
ba8bd22858
Author | SHA1 | Date | |
---|---|---|---|
|
ba8bd22858 | ||
|
d0463a9289 |
32
README.md
Normal file
32
README.md
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# My NeoVim configuration
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
- NeoVim
|
||||||
|
- [Packer](https://github.com/wbthomason/packer.nvim)
|
||||||
|
|
||||||
|
To install packer run
|
||||||
|
```bash
|
||||||
|
git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||||
|
```
|
||||||
|
|
||||||
|
To run LSP (autocomplete) you will also need the server for that language.
|
||||||
|
Currently, the languages servers that are configured are:
|
||||||
|
- bash (bashls)
|
||||||
|
- c/c++ (ccls)
|
||||||
|
- prisma (prismals)
|
||||||
|
- python (pylsp)
|
||||||
|
- rust (rust_analyzer)
|
||||||
|
- svelte (sveltelsp)
|
||||||
|
- tex (ltex)
|
||||||
|
- ts (tsserver)
|
||||||
|
- vlang (vls)
|
||||||
|
- zig (zls)
|
||||||
|
|
||||||
|
## Some useful shortcuts
|
||||||
|
- ' f': Find files uses fuzzy finding to search for files in the folder you are currently are
|
||||||
|
- ' /': Search the files using grep
|
||||||
|
- '<C-F>': Open file structure
|
||||||
|
- 'gd': Goto definition
|
||||||
|
- 'K': Show call signature
|
||||||
|
- ']d': Goto next error
|
||||||
|
- '[d': Goto previous error
|
@ -12,11 +12,11 @@ vim.opt.background = 'dark'
|
|||||||
-- vim.g.cyberpunk_cursorline='black'
|
-- vim.g.cyberpunk_cursorline='black'
|
||||||
|
|
||||||
-- vim.cmd('colorscheme ayu')
|
-- vim.cmd('colorscheme ayu')
|
||||||
-- vim.cmd('colorscheme night_owl_light')
|
vim.cmd('colorscheme night_owl_light')
|
||||||
-- vim.cmd('colorscheme eva01')
|
-- vim.cmd('colorscheme eva01')
|
||||||
-- vim.cmd('colorscheme cyberpunk')
|
-- vim.cmd('colorscheme cyberpunk')
|
||||||
-- vim.cmd('colorscheme catppuccin-latte')
|
-- vim.cmd('colorscheme catppuccin-latte')
|
||||||
vim.cmd('colorscheme oxocarbon')
|
-- vim.cmd('colorscheme oxocarbon')
|
||||||
|
|
||||||
-- examples for your init.lua
|
-- examples for your init.lua
|
||||||
|
|
||||||
@ -26,27 +26,27 @@ vim.g.loaded_netrwPlugin = 1
|
|||||||
|
|
||||||
-- setup with some options
|
-- setup with some options
|
||||||
require("nvim-tree").setup{ -- BEGIN_DEFAULT_OPTS
|
require("nvim-tree").setup{ -- BEGIN_DEFAULT_OPTS
|
||||||
auto_reload_on_write = true,
|
auto_reload_on_write = true,
|
||||||
create_in_closed_folder = false,
|
create_in_closed_folder = false,
|
||||||
disable_netrw = false,
|
disable_netrw = false,
|
||||||
hijack_cursor = false,
|
hijack_cursor = false,
|
||||||
hijack_netrw = true,
|
hijack_netrw = true,
|
||||||
hijack_unnamed_buffer_when_opening = false,
|
hijack_unnamed_buffer_when_opening = false,
|
||||||
ignore_buffer_on_setup = false,
|
ignore_buffer_on_setup = false,
|
||||||
open_on_setup = false,
|
open_on_setup = false,
|
||||||
open_on_setup_file = false,
|
open_on_setup_file = false,
|
||||||
open_on_tab = false,
|
open_on_tab = false,
|
||||||
ignore_buf_on_tab_change = {},
|
ignore_buf_on_tab_change = {},
|
||||||
sort_by = "name",
|
sort_by = "name",
|
||||||
root_dirs = {},
|
root_dirs = {},
|
||||||
prefer_startup_root = false,
|
prefer_startup_root = false,
|
||||||
sync_root_with_cwd = false,
|
sync_root_with_cwd = false,
|
||||||
reload_on_bufenter = false,
|
reload_on_bufenter = false,
|
||||||
respect_buf_cwd = false,
|
respect_buf_cwd = false,
|
||||||
on_attach = "disable",
|
on_attach = "disable",
|
||||||
remove_keymaps = false,
|
remove_keymaps = false,
|
||||||
select_prompts = false,
|
select_prompts = false,
|
||||||
view = {
|
view = {
|
||||||
adaptive_size = false,
|
adaptive_size = false,
|
||||||
centralize_selection = false,
|
centralize_selection = false,
|
||||||
width = 30,
|
width = 30,
|
||||||
@ -74,8 +74,8 @@ view = {
|
|||||||
col = 1,
|
col = 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
renderer = {
|
renderer = {
|
||||||
add_trailing = false,
|
add_trailing = false,
|
||||||
group_empty = false,
|
group_empty = false,
|
||||||
highlight_git = false,
|
highlight_git = false,
|
||||||
@ -132,44 +132,44 @@ renderer = {
|
|||||||
},
|
},
|
||||||
special_files = { "Cargo.toml", "Makefile", "README.md", "readme.md" },
|
special_files = { "Cargo.toml", "Makefile", "README.md", "readme.md" },
|
||||||
symlink_destination = true,
|
symlink_destination = true,
|
||||||
},
|
},
|
||||||
hijack_directories = {
|
hijack_directories = {
|
||||||
enable = true,
|
enable = true,
|
||||||
auto_open = true,
|
auto_open = true,
|
||||||
},
|
},
|
||||||
update_focused_file = {
|
update_focused_file = {
|
||||||
enable = false,
|
enable = false,
|
||||||
update_root = false,
|
update_root = false,
|
||||||
ignore_list = {},
|
ignore_list = {},
|
||||||
},
|
},
|
||||||
ignore_ft_on_setup = {},
|
ignore_ft_on_setup = {},
|
||||||
system_open = {
|
system_open = {
|
||||||
cmd = "",
|
cmd = "",
|
||||||
args = {},
|
args = {},
|
||||||
},
|
},
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
enable = true,
|
enable = true,
|
||||||
show_on_dirs = false,
|
show_on_dirs = false,
|
||||||
debounce_delay = 50,
|
debounce_delay = 50,
|
||||||
icons = { error = "☣️ ", warning = "😞", hint = "❤️ ", info = "ℹ️ " }
|
icons = { error = "☣️ ", warning = "😞", hint = "❤️ ", info = "ℹ️ " }
|
||||||
,
|
,
|
||||||
},
|
},
|
||||||
filters = {
|
filters = {
|
||||||
dotfiles = false,
|
dotfiles = false,
|
||||||
custom = {},
|
custom = {},
|
||||||
exclude = {},
|
exclude = {},
|
||||||
},
|
},
|
||||||
filesystem_watchers = {
|
filesystem_watchers = {
|
||||||
enable = true,
|
enable = true,
|
||||||
debounce_delay = 50,
|
debounce_delay = 50,
|
||||||
},
|
},
|
||||||
git = {
|
git = {
|
||||||
enable = true,
|
enable = true,
|
||||||
ignore = true,
|
ignore = true,
|
||||||
show_on_dirs = true,
|
show_on_dirs = true,
|
||||||
timeout = 400,
|
timeout = 400,
|
||||||
},
|
},
|
||||||
actions = {
|
actions = {
|
||||||
use_system_clipboard = true,
|
use_system_clipboard = true,
|
||||||
change_dir = {
|
change_dir = {
|
||||||
enable = true,
|
enable = true,
|
||||||
@ -204,16 +204,16 @@ actions = {
|
|||||||
remove_file = {
|
remove_file = {
|
||||||
close_window = true,
|
close_window = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
trash = {
|
trash = {
|
||||||
cmd = "gio trash",
|
cmd = "gio trash",
|
||||||
require_confirm = true,
|
require_confirm = true,
|
||||||
},
|
},
|
||||||
live_filter = {
|
live_filter = {
|
||||||
prefix = "[FILTER]: ",
|
prefix = "[FILTER]: ",
|
||||||
always_show_folders = true,
|
always_show_folders = true,
|
||||||
},
|
},
|
||||||
log = {
|
log = {
|
||||||
enable = false,
|
enable = false,
|
||||||
truncate = false,
|
truncate = false,
|
||||||
types = {
|
types = {
|
||||||
@ -226,11 +226,11 @@ log = {
|
|||||||
profile = false,
|
profile = false,
|
||||||
watcher = false,
|
watcher = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
notify = {
|
notify = {
|
||||||
threshold = vim.log.levels.INFO,
|
threshold = vim.log.levels.INFO,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ keymap("n", "]E", function()
|
|||||||
require("lspsaga.diagnostic").goto_next({ severity = vim.diagnostic.severity.ERROR })
|
require("lspsaga.diagnostic").goto_next({ severity = vim.diagnostic.severity.ERROR })
|
||||||
end, { silent = true })
|
end, { silent = true })
|
||||||
|
|
||||||
keymap("n","<leader>o", "<cmd>LSoutlineToggle<CR>",{ silent = true })
|
-- keymap("n","<leader>o", "<cmd>LSoutlineToggle<CR>",{ silent = true })
|
||||||
keymap("n", "K", "<cmd>Lspsaga hover_doc<CR>", { silent = true })
|
keymap("n", "K", "<cmd>Lspsaga hover_doc<CR>", { silent = true })
|
||||||
keymap("n", "<A-d>", "<cmd>Lspsaga open_floaterm<CR>", { silent = true })
|
keymap("n", "<A-d>", "<cmd>Lspsaga open_floaterm<CR>", { silent = true })
|
||||||
keymap("n", "<A-d>", "<cmd>Lspsaga open_floaterm lazygit<CR>", { silent = true })
|
keymap("n", "<A-d>", "<cmd>Lspsaga open_floaterm lazygit<CR>", { silent = true })
|
||||||
|
@ -12,7 +12,6 @@ return require('packer').startup(function()
|
|||||||
use 'thedenisnikulin/vim-cyberpunk'
|
use 'thedenisnikulin/vim-cyberpunk'
|
||||||
use { "catppuccin/nvim", as = "catppuccin" }
|
use { "catppuccin/nvim", as = "catppuccin" }
|
||||||
use {'nyoom-engineering/oxocarbon.nvim'}
|
use {'nyoom-engineering/oxocarbon.nvim'}
|
||||||
use "nyngwang/nvimgelio"
|
|
||||||
|
|
||||||
-- other stuff
|
-- other stuff
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user