Compare commits

..

No commits in common. "ba8bd22858cea30726a6c487d1901151aae87ba1" and "25a930d33006b2cc16539cf0e385c6c6a8de6d43" have entirely different histories.

4 changed files with 193 additions and 224 deletions

View File

@ -1,32 +0,0 @@
# 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

View File

@ -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 @@ require("nvim-tree").setup{ -- BEGIN_DEFAULT_OPTS
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 @@ require("nvim-tree").setup{ -- BEGIN_DEFAULT_OPTS
}, },
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 @@ require("nvim-tree").setup{ -- BEGIN_DEFAULT_OPTS
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 @@ require("nvim-tree").setup{ -- BEGIN_DEFAULT_OPTS
profile = false, profile = false,
watcher = false, watcher = false,
}, },
}, },
notify = { notify = {
threshold = vim.log.levels.INFO, threshold = vim.log.levels.INFO,
}, },
} }

View File

@ -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 })

View File

@ -12,6 +12,7 @@ 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