added readme
This commit is contained in:
parent
d0463a9289
commit
ba8bd22858
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.cmd('colorscheme ayu')
|
||||
-- vim.cmd('colorscheme night_owl_light')
|
||||
vim.cmd('colorscheme night_owl_light')
|
||||
-- vim.cmd('colorscheme eva01')
|
||||
-- vim.cmd('colorscheme cyberpunk')
|
||||
-- vim.cmd('colorscheme catppuccin-latte')
|
||||
vim.cmd('colorscheme oxocarbon')
|
||||
-- vim.cmd('colorscheme oxocarbon')
|
||||
|
||||
-- examples for your init.lua
|
||||
|
||||
@ -26,27 +26,27 @@ vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
-- setup with some options
|
||||
require("nvim-tree").setup{ -- BEGIN_DEFAULT_OPTS
|
||||
auto_reload_on_write = true,
|
||||
create_in_closed_folder = false,
|
||||
disable_netrw = false,
|
||||
hijack_cursor = false,
|
||||
hijack_netrw = true,
|
||||
hijack_unnamed_buffer_when_opening = false,
|
||||
ignore_buffer_on_setup = false,
|
||||
open_on_setup = false,
|
||||
open_on_setup_file = false,
|
||||
open_on_tab = false,
|
||||
ignore_buf_on_tab_change = {},
|
||||
sort_by = "name",
|
||||
root_dirs = {},
|
||||
prefer_startup_root = false,
|
||||
sync_root_with_cwd = false,
|
||||
reload_on_bufenter = false,
|
||||
respect_buf_cwd = false,
|
||||
on_attach = "disable",
|
||||
remove_keymaps = false,
|
||||
select_prompts = false,
|
||||
view = {
|
||||
auto_reload_on_write = true,
|
||||
create_in_closed_folder = false,
|
||||
disable_netrw = false,
|
||||
hijack_cursor = false,
|
||||
hijack_netrw = true,
|
||||
hijack_unnamed_buffer_when_opening = false,
|
||||
ignore_buffer_on_setup = false,
|
||||
open_on_setup = false,
|
||||
open_on_setup_file = false,
|
||||
open_on_tab = false,
|
||||
ignore_buf_on_tab_change = {},
|
||||
sort_by = "name",
|
||||
root_dirs = {},
|
||||
prefer_startup_root = false,
|
||||
sync_root_with_cwd = false,
|
||||
reload_on_bufenter = false,
|
||||
respect_buf_cwd = false,
|
||||
on_attach = "disable",
|
||||
remove_keymaps = false,
|
||||
select_prompts = false,
|
||||
view = {
|
||||
adaptive_size = false,
|
||||
centralize_selection = false,
|
||||
width = 30,
|
||||
@ -74,8 +74,8 @@ view = {
|
||||
col = 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
renderer = {
|
||||
},
|
||||
renderer = {
|
||||
add_trailing = false,
|
||||
group_empty = false,
|
||||
highlight_git = false,
|
||||
@ -132,44 +132,44 @@ renderer = {
|
||||
},
|
||||
special_files = { "Cargo.toml", "Makefile", "README.md", "readme.md" },
|
||||
symlink_destination = true,
|
||||
},
|
||||
hijack_directories = {
|
||||
},
|
||||
hijack_directories = {
|
||||
enable = true,
|
||||
auto_open = true,
|
||||
},
|
||||
update_focused_file = {
|
||||
},
|
||||
update_focused_file = {
|
||||
enable = false,
|
||||
update_root = false,
|
||||
ignore_list = {},
|
||||
},
|
||||
ignore_ft_on_setup = {},
|
||||
system_open = {
|
||||
},
|
||||
ignore_ft_on_setup = {},
|
||||
system_open = {
|
||||
cmd = "",
|
||||
args = {},
|
||||
},
|
||||
diagnostics = {
|
||||
},
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
show_on_dirs = false,
|
||||
debounce_delay = 50,
|
||||
icons = { error = "☣️ ", warning = "😞", hint = "❤️ ", info = "ℹ️ " }
|
||||
,
|
||||
},
|
||||
filters = {
|
||||
,
|
||||
},
|
||||
filters = {
|
||||
dotfiles = false,
|
||||
custom = {},
|
||||
exclude = {},
|
||||
},
|
||||
filesystem_watchers = {
|
||||
},
|
||||
filesystem_watchers = {
|
||||
enable = true,
|
||||
debounce_delay = 50,
|
||||
},
|
||||
git = {
|
||||
},
|
||||
git = {
|
||||
enable = true,
|
||||
ignore = true,
|
||||
show_on_dirs = true,
|
||||
timeout = 400,
|
||||
},
|
||||
actions = {
|
||||
},
|
||||
actions = {
|
||||
use_system_clipboard = true,
|
||||
change_dir = {
|
||||
enable = true,
|
||||
@ -204,16 +204,16 @@ actions = {
|
||||
remove_file = {
|
||||
close_window = true,
|
||||
},
|
||||
},
|
||||
trash = {
|
||||
},
|
||||
trash = {
|
||||
cmd = "gio trash",
|
||||
require_confirm = true,
|
||||
},
|
||||
live_filter = {
|
||||
},
|
||||
live_filter = {
|
||||
prefix = "[FILTER]: ",
|
||||
always_show_folders = true,
|
||||
},
|
||||
log = {
|
||||
},
|
||||
log = {
|
||||
enable = false,
|
||||
truncate = false,
|
||||
types = {
|
||||
@ -226,11 +226,11 @@ log = {
|
||||
profile = false,
|
||||
watcher = false,
|
||||
},
|
||||
},
|
||||
notify = {
|
||||
},
|
||||
notify = {
|
||||
threshold = vim.log.levels.INFO,
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -194,7 +194,7 @@ keymap("n", "]E", function()
|
||||
require("lspsaga.diagnostic").goto_next({ severity = vim.diagnostic.severity.ERROR })
|
||||
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", "<A-d>", "<cmd>Lspsaga open_floaterm<CR>", { silent = true })
|
||||
keymap("n", "<A-d>", "<cmd>Lspsaga open_floaterm lazygit<CR>", { silent = true })
|
||||
|
Loading…
Reference in New Issue
Block a user