added all the dotfiles
This commit is contained in:
11
nvim/.config/nvim/.luarc.json
Executable file
11
nvim/.config/nvim/.luarc.json
Executable file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"diagnostics.globals": [
|
||||
"vim",
|
||||
" false",
|
||||
" "
|
||||
],
|
||||
"runtime.unicodeName": true,
|
||||
"diagnostics.disable": [
|
||||
"undefined-doc-name"
|
||||
]
|
||||
}
|
||||
32
nvim/.config/nvim/init.lua
Executable file
32
nvim/.config/nvim/init.lua
Executable file
@@ -0,0 +1,32 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("vim-options")
|
||||
require("lazy").setup("plugins")
|
||||
require("lualine").setup({
|
||||
sections = {
|
||||
lualine_x = {
|
||||
{
|
||||
require("noice").api.statusline.mode.get,
|
||||
cond = require("noice").api.statusline.mode.has,
|
||||
color = { fg = "#ff9e64" },
|
||||
}
|
||||
},
|
||||
},
|
||||
})
|
||||
require("lazy").setup({
|
||||
{
|
||||
'tzachar/cmp-tabnine',
|
||||
build = './install.sh',
|
||||
dependencies = 'hrsh7th/nvim-cmp',
|
||||
}})
|
||||
35
nvim/.config/nvim/init.lua.bak
Executable file
35
nvim/.config/nvim/init.lua.bak
Executable file
@@ -0,0 +1,35 @@
|
||||
vim.cmd("set expandtab")
|
||||
vim.cmd("set tabstop=2")
|
||||
vim.cmd("set softtabstop=2")
|
||||
vim.cmd("set shiftwidth=2")
|
||||
vim.g.mapleader = " "
|
||||
|
||||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
||||
-- loading lazy.nvim so that mappings are correct.
|
||||
-- This is also a good place to setup other settings (vim.opt)
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = "\\"
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("vim-options")
|
||||
require("lazy").setup("plugins")
|
||||
|
||||
|
||||
|
||||
33
nvim/.config/nvim/lazy-lock.json
Executable file
33
nvim/.config/nvim/lazy-lock.json
Executable file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" },
|
||||
"alpha-nvim": { "branch": "main", "commit": "de72250e054e5e691b9736ee30db72c65d560771" },
|
||||
"catppuccin": { "branch": "main", "commit": "f67b886d65a029f12ffa298701fb8f1efd89295d" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" },
|
||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||
"cmp-tabnine": { "branch": "main", "commit": "c0167cdc86c15e782c5461ee62aebee89231c2ed" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "abcd00a7d5bc1a9470cb21b023c575acade3e4db" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "e942edf5c85b6a2ab74059ea566cac5b3e1514a4" },
|
||||
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
||||
"neo-tree.nvim": { "branch": "v3.x", "commit": "e6645ecfcba3e064446a6def1c10d788c9873f51" },
|
||||
"noice.nvim": { "branch": "main", "commit": "eaed6cc9c06aa2013b5255349e4f26a6b17ab70f" },
|
||||
"none-ls.nvim": { "branch": "main", "commit": "eec6019d95353f1706bff07ab4698354d09fe062" },
|
||||
"nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "8c82d0bd31299dbff7f8e780f5e06d2283de9678" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "339ccc81e08793c3af9b83882a6ebd90c9cc0d3b" },
|
||||
"nvim-tmux-navigation": { "branch": "main", "commit": "4898c98702954439233fdaf764c39636681e2861" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "984214ef8e4ca18d77639663319aabdfba89632f" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "5740b7382429d20b6ed0bbdb0694185af9507d44" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" },
|
||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" },
|
||||
"vim-fugitive": { "branch": "master", "commit": "174230d6a7f2df94705a7ffd8d5413e27ec10a80" },
|
||||
"vim-test": { "branch": "master", "commit": "ade33384bd8ca8555853cf5d7dd26a293fcb332e" },
|
||||
"vimux": { "branch": "master", "commit": "7db6b2f79d432ee3820668b1d4625311dbe1d0ad" },
|
||||
"yazi.nvim": { "branch": "main", "commit": "0e33396749c6f49c2ac23ef546a11a5ab639d504" }
|
||||
}
|
||||
8
nvim/.config/nvim/lua/plugins.inactive/oil.lua
Executable file
8
nvim/.config/nvim/lua/plugins.inactive/oil.lua
Executable file
@@ -0,0 +1,8 @@
|
||||
-- return {
|
||||
-- "stevearc/oil.nvim",
|
||||
-- config = function()
|
||||
-- local oil = require("oil")
|
||||
-- oil.setup()
|
||||
-- vim.keymap.set("n", "-", oil.toggle_float, {})
|
||||
-- end,
|
||||
--}
|
||||
5
nvim/.config/nvim/lua/plugins.inactive/swagger-preview.lua
Executable file
5
nvim/.config/nvim/lua/plugins.inactive/swagger-preview.lua
Executable file
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
"vinnymeller/swagger-preview.nvim",
|
||||
build = "npm install -g swagger-ui-watcher",
|
||||
config = true,
|
||||
}
|
||||
1
nvim/.config/nvim/lua/plugins.lua
Executable file
1
nvim/.config/nvim/lua/plugins.lua
Executable file
@@ -0,0 +1 @@
|
||||
return {}
|
||||
31
nvim/.config/nvim/lua/plugins/alpha.lua
Executable file
31
nvim/.config/nvim/lua/plugins/alpha.lua
Executable file
@@ -0,0 +1,31 @@
|
||||
return {
|
||||
"goolord/alpha-nvim",
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
|
||||
config = function()
|
||||
local alpha = require("alpha")
|
||||
local dashboard = require("alpha.themes.startify")
|
||||
|
||||
dashboard.section.header.val = {
|
||||
[[ ]],
|
||||
[[ ]],
|
||||
[[ ]],
|
||||
[[ ]],
|
||||
[[ ]],
|
||||
[[ ████ ██████ █████ ██ ]],
|
||||
[[ ███████████ █████ ]],
|
||||
[[ █████████ ███████████████████ ███ ███████████ ]],
|
||||
[[ █████████ ███ █████████████ █████ ██████████████ ]],
|
||||
[[ █████████ ██████████ █████████ █████ █████ ████ █████ ]],
|
||||
[[ ███████████ ███ ███ █████████ █████ █████ ████ █████ ]],
|
||||
[[ ██████ █████████████████████ ████ █████ █████ ████ ██████ ]],
|
||||
[[ ]],
|
||||
[[ ]],
|
||||
[[ ]],
|
||||
}
|
||||
|
||||
alpha.setup(dashboard.opts)
|
||||
end,
|
||||
}
|
||||
11
nvim/.config/nvim/lua/plugins/catppuccin.lua
Executable file
11
nvim/.config/nvim/lua/plugins/catppuccin.lua
Executable file
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
lazy = false,
|
||||
name = "catppuccin",
|
||||
priority = 1000,
|
||||
config = function()
|
||||
vim.cmd.colorscheme "catppuccin-mocha"
|
||||
end
|
||||
}
|
||||
}
|
||||
9
nvim/.config/nvim/lua/plugins/cmp.lua
Executable file
9
nvim/.config/nvim/lua/plugins/cmp.lua
Executable file
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
{
|
||||
"hrsh7th/cmp-path", -- file and folders
|
||||
"hrsh7th/cmp-buffer", -- words from the current buffer
|
||||
"hrsh7th/cmp-nvim-lsp", -- LSP-based autocompletions
|
||||
"hrsh7th/cmp-cmdline", -- Command-line autocompletions
|
||||
"tzachar/cmp-tabnine", build = "./install.sh",
|
||||
},
|
||||
}
|
||||
46
nvim/.config/nvim/lua/plugins/completions.lua
Executable file
46
nvim/.config/nvim/lua/plugins/completions.lua
Executable file
@@ -0,0 +1,46 @@
|
||||
return {
|
||||
{
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
},
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
dependencies = {
|
||||
"saadparwaiz1/cmp_luasnip",
|
||||
"rafamadriz/friendly-snippets",
|
||||
},
|
||||
},
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
config = function()
|
||||
local cmp = require("cmp")
|
||||
require("luasnip.loaders.from_vscode").lazy_load()
|
||||
|
||||
cmp.setup({
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
require("luasnip").lsp_expand(args.body)
|
||||
end,
|
||||
},
|
||||
window = {
|
||||
completion = cmp.config.window.bordered(),
|
||||
documentation = cmp.config.window.bordered(),
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
["<C-b>"] = cmp.mapping.scroll_docs(-4),
|
||||
["<C-f>"] = cmp.mapping.scroll_docs(4),
|
||||
["<C-Space>"] = cmp.mapping.complete(),
|
||||
["<C-e>"] = cmp.mapping.abort(),
|
||||
["<CR>"] = cmp.mapping.confirm({ select = true }),
|
||||
}),
|
||||
sources = cmp.config.sources({
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "luasnip" }, -- For luasnip users.
|
||||
{ name = "buffer" },
|
||||
{ name = "path" },
|
||||
{ name = "cmp_tabnine" }, -- ai powerde suggestions
|
||||
}),
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
14
nvim/.config/nvim/lua/plugins/git-stuff.lua
Executable file
14
nvim/.config/nvim/lua/plugins/git-stuff.lua
Executable file
@@ -0,0 +1,14 @@
|
||||
return {
|
||||
{
|
||||
"tpope/vim-fugitive"
|
||||
},
|
||||
{
|
||||
"lewis6991/gitsigns.nvim",
|
||||
config = function()
|
||||
require("gitsigns").setup()
|
||||
|
||||
vim.keymap.set("n", "<leader>gp", ":Gitsigns preview_hunk<CR>", {})
|
||||
vim.keymap.set("n", "<leader>gt", ":Gitsigns toggle_current_line_blame<CR>", {})
|
||||
end
|
||||
}
|
||||
}
|
||||
11
nvim/.config/nvim/lua/plugins/gitsigns.lua
Executable file
11
nvim/.config/nvim/lua/plugins/gitsigns.lua
Executable file
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
{
|
||||
"tpope/vim-fugitive",
|
||||
},
|
||||
{
|
||||
"lewis6991/gitsigns.nvim",
|
||||
config = function()
|
||||
require("gitsigns").setup()
|
||||
end,
|
||||
}
|
||||
}
|
||||
46
nvim/.config/nvim/lua/plugins/lsp-config.lua
Executable file
46
nvim/.config/nvim/lua/plugins/lsp-config.lua
Executable file
@@ -0,0 +1,46 @@
|
||||
return {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
lazy = false,
|
||||
config = function()
|
||||
require("mason").setup()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
lazy = false,
|
||||
opts = {
|
||||
auto_install = true,
|
||||
},
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
lazy = false,
|
||||
config = function()
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
|
||||
local lspconfig = require("lspconfig")
|
||||
lspconfig.ts_ls.setup({
|
||||
capabilities = capabilities
|
||||
})
|
||||
lspconfig.solargraph.setup({
|
||||
capabilities = capabilities
|
||||
})
|
||||
lspconfig.html.setup({
|
||||
capabilities = capabilities
|
||||
})
|
||||
lspconfig.lua_ls.setup({
|
||||
capabilities = capabilities
|
||||
})
|
||||
lspconfig.pyright.setup({
|
||||
capabilities = capabilities
|
||||
})
|
||||
|
||||
vim.keymap.set("n", "K", vim.lsp.buf.hover, {})
|
||||
vim.keymap.set("n", "<leader>gd", vim.lsp.buf.definition, {})
|
||||
vim.keymap.set("n", "<leader>gr", vim.lsp.buf.references, {})
|
||||
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, {})
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
10
nvim/.config/nvim/lua/plugins/lualine.lua
Executable file
10
nvim/.config/nvim/lua/plugins/lualine.lua
Executable file
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
"nvim-lualine/lualine.nvim",
|
||||
config = function ()
|
||||
require('lualine').setup({
|
||||
options = {
|
||||
theme = 'dracula'
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
13
nvim/.config/nvim/lua/plugins/neo-tree.lua
Executable file
13
nvim/.config/nvim/lua/plugins/neo-tree.lua
Executable file
@@ -0,0 +1,13 @@
|
||||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
branch = "v3.x",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
config = function()
|
||||
vim.keymap.set("n", "<leader>ee", ":Neotree filesystem reveal left<CR>", {})
|
||||
vim.keymap.set("n", "<leader>bf", ":Neotree buffers reveal float<CR>", {})
|
||||
end,
|
||||
}
|
||||
17
nvim/.config/nvim/lua/plugins/noice.lua
Executable file
17
nvim/.config/nvim/lua/plugins/noice.lua
Executable file
@@ -0,0 +1,17 @@
|
||||
return { -- lazy.nvim
|
||||
{
|
||||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
-- add any options here
|
||||
},
|
||||
dependencies = {
|
||||
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
||||
"MunifTanjim/nui.nvim",
|
||||
-- OPTIONAL:
|
||||
-- `nvim-notify` is only needed, if you want to use the notification view.
|
||||
-- If not available, we use `mini` as the fallback
|
||||
-- "rcarriga/nvim-notify",
|
||||
},
|
||||
},
|
||||
}
|
||||
21
nvim/.config/nvim/lua/plugins/none-ls.lua
Executable file
21
nvim/.config/nvim/lua/plugins/none-ls.lua
Executable file
@@ -0,0 +1,21 @@
|
||||
return {
|
||||
"nvimtools/none-ls.nvim",
|
||||
config = function()
|
||||
local null_ls = require("null-ls")
|
||||
null_ls.setup({
|
||||
sources = {
|
||||
null_ls.builtins.formatting.stylua,
|
||||
null_ls.builtins.formatting.prettier,
|
||||
-- null_ls.builtins.diagnostics.eslint_d,
|
||||
null_ls.builtins.diagnostics.rubocop,
|
||||
null_ls.builtins.formatting.rubocop,
|
||||
null_ls.builtins.formatting.black,
|
||||
null_ls.builtins.formatting.isort,
|
||||
null_ls.builtins.diagnostics.pylint,
|
||||
},
|
||||
})
|
||||
|
||||
vim.keymap.set("n", "<leader>gf", vim.lsp.buf.format, {})
|
||||
end,
|
||||
}
|
||||
|
||||
10
nvim/.config/nvim/lua/plugins/nvim-tmux-navigation.lua
Executable file
10
nvim/.config/nvim/lua/plugins/nvim-tmux-navigation.lua
Executable file
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
"alexghergh/nvim-tmux-navigation",
|
||||
config = function()
|
||||
require('nvim-tmux-navigation').setup({})
|
||||
vim.keymap.set("n", "<C-h>", "<Cmd>NvimTmuxNavigateLeft<CR>", {})
|
||||
vim.keymap.set("n", "<C-j>", "<Cmd>NvimTmuxNavigateDown<CR>", {})
|
||||
vim.keymap.set("n", "<C-k>", "<Cmd>NvimTmuxNavigateUp<CR>", {})
|
||||
vim.keymap.set("n", "<C-l>", "<Cmd>NvimTmuxNavigateRight<CR>", {})
|
||||
end,
|
||||
}
|
||||
26
nvim/.config/nvim/lua/plugins/telescope.lua
Executable file
26
nvim/.config/nvim/lua/plugins/telescope.lua
Executable file
@@ -0,0 +1,26 @@
|
||||
return {
|
||||
{
|
||||
"nvim-telescope/telescope-ui-select.nvim",
|
||||
},
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
tag = "0.1.5",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
config = function()
|
||||
require("telescope").setup({
|
||||
extensions = {
|
||||
["ui-select"] = {
|
||||
require("telescope.themes").get_dropdown({}),
|
||||
},
|
||||
},
|
||||
})
|
||||
local builtin = require("telescope.builtin")
|
||||
vim.keymap.set("n", "<C-p>", builtin.find_files, {})
|
||||
vim.keymap.set("n", "<leader>fg", builtin.live_grep, {})
|
||||
vim.keymap.set("n", "<leader><leader>", builtin.oldfiles, {})
|
||||
|
||||
require("telescope").load_extension("ui-select")
|
||||
require("telescope").load_extension("noice")
|
||||
end,
|
||||
},
|
||||
}
|
||||
14
nvim/.config/nvim/lua/plugins/treesitter.lua
Executable file
14
nvim/.config/nvim/lua/plugins/treesitter.lua
Executable file
@@ -0,0 +1,14 @@
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
config = function()
|
||||
local config = require("nvim-treesitter.configs")
|
||||
config.setup({
|
||||
auto_install = true,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
})
|
||||
end
|
||||
}
|
||||
}
|
||||
14
nvim/.config/nvim/lua/plugins/vim-test.lua
Executable file
14
nvim/.config/nvim/lua/plugins/vim-test.lua
Executable file
@@ -0,0 +1,14 @@
|
||||
return {
|
||||
"vim-test/vim-test",
|
||||
dependencies = {
|
||||
"preservim/vimux"
|
||||
},
|
||||
config = function()
|
||||
vim.keymap.set("n", "<leader>t", ":TestNearest<CR>", {})
|
||||
vim.keymap.set("n", "<leader>T", ":TestFile<CR>", {})
|
||||
vim.keymap.set("n", "<leader>a", ":TestSuite<CR>", {})
|
||||
vim.keymap.set("n", "<leader>l", ":TestLast<CR>", {})
|
||||
vim.keymap.set("n", "<leader>g", ":TestVisit<CR>", {})
|
||||
vim.cmd("let test#strategy = 'vimux'")
|
||||
end,
|
||||
}
|
||||
35
nvim/.config/nvim/lua/plugins/yazi-nvim.lua
Executable file
35
nvim/.config/nvim/lua/plugins/yazi-nvim.lua
Executable file
@@ -0,0 +1,35 @@
|
||||
return {
|
||||
{
|
||||
"mikavilpas/yazi.nvim",
|
||||
event = "VeryLazy",
|
||||
keys = {
|
||||
-- 👇 in this section, choose your own keymappings!
|
||||
{
|
||||
"<leader>-",
|
||||
"<cmd>Yazi<cr>",
|
||||
desc = "Open yazi at the current file",
|
||||
},
|
||||
{
|
||||
-- Open in the current working directory
|
||||
"<leader>cw",
|
||||
"<cmd>Yazi cwd<cr>",
|
||||
desc = "Open the file manager in nvim's working directory",
|
||||
},
|
||||
{
|
||||
-- NOTE: this requires a version of yazi that includes
|
||||
-- https://github.com/sxyazi/yazi/pull/1305 from 2024-07-18
|
||||
"<c-up>",
|
||||
"<cmd>Yazi toggle<cr>",
|
||||
desc = "Resume the last yazi session",
|
||||
},
|
||||
},
|
||||
---@type YaziConfig
|
||||
opts = {
|
||||
-- if you want to open yazi instead of netrw, see below for more info
|
||||
open_for_directories = false,
|
||||
keymaps = {
|
||||
show_help = "<f1>",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
18
nvim/.config/nvim/lua/vim-options.lua
Executable file
18
nvim/.config/nvim/lua/vim-options.lua
Executable file
@@ -0,0 +1,18 @@
|
||||
vim.cmd("set expandtab")
|
||||
vim.cmd("set tabstop=2")
|
||||
vim.cmd("set softtabstop=2")
|
||||
vim.cmd("set shiftwidth=2")
|
||||
vim.g.mapleader = " "
|
||||
vim.g.background = "light"
|
||||
|
||||
vim.opt.swapfile = false
|
||||
|
||||
-- Navigate vim panes better
|
||||
vim.keymap.set('n', '<c-k>', ':wincmd k<CR>')
|
||||
vim.keymap.set('n', '<c-j>', ':wincmd j<CR>')
|
||||
vim.keymap.set('n', '<c-h>', ':wincmd h<CR>')
|
||||
vim.keymap.set('n', '<c-l>', ':wincmd l<CR>')
|
||||
|
||||
vim.keymap.set('n', '<leader>h', ':nohlsearch<CR>')
|
||||
vim.wo.number = true
|
||||
|
||||
Reference in New Issue
Block a user