removed windows and linux split subdir
This commit is contained in:
parent
83dda10fa8
commit
065b982734
280 changed files with 9053 additions and 426 deletions
3
.config/nvim/lua/config/init.lua
Normal file
3
.config/nvim/lua/config/init.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
require('config.lazy')
|
||||
require('config.rest')
|
||||
require('config.lsp')
|
||||
8
.config/nvim/lua/config/keybinds.lua
Normal file
8
.config/nvim/lua/config/keybinds.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
-- Remap Ctrl + h/j/k/l for pane movement
|
||||
vim.api.nvim_set_keymap('n', '<C-h>', '<C-w>h', { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<C-j>', '<C-w>j', { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<C-k>', '<C-w>k', { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<C-l>', '<C-w>l', { noremap = true, silent = true })
|
||||
|
||||
-- Clear Highlights
|
||||
vim.api.nvim_set_keymap('n', '<Esc>', ':noh<CR>', { noremap = true, silent = true })
|
||||
41
.config/nvim/lua/config/lazy.lua
Normal file
41
.config/nvim/lua/config/lazy.lua
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
-- 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("lazy").setup({
|
||||
spec = {
|
||||
-- import your plugins
|
||||
{ import = "plugins_base" },
|
||||
{ import = "plugins_lsp" },
|
||||
},
|
||||
-- Configure any other settings here. See the documentation for more details.
|
||||
-- colorscheme that will be used when installing plugins.
|
||||
install = { colorscheme = { "nord" } },
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = false },
|
||||
|
||||
change_detection = {
|
||||
enabled = false,
|
||||
notify = false,
|
||||
},
|
||||
})
|
||||
6
.config/nvim/lua/config/lsp.lua
Normal file
6
.config/nvim/lua/config/lsp.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
vim.diagnostic.config({
|
||||
virtual_lines = {
|
||||
current_line = true,
|
||||
}
|
||||
})
|
||||
|
||||
2
.config/nvim/lua/config/rest.lua
Normal file
2
.config/nvim/lua/config/rest.lua
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
require('config.settings')
|
||||
require('config.keybinds')
|
||||
65
.config/nvim/lua/config/settings.lua
Normal file
65
.config/nvim/lua/config/settings.lua
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
-- Line numbers
|
||||
vim.wo.number = true
|
||||
|
||||
-- Tabs
|
||||
vim.o.expandtab = true
|
||||
vim.o.smartindent = true
|
||||
vim.o.tabstop = 4
|
||||
vim.o.shiftwidth = 4
|
||||
|
||||
-- Clipboard
|
||||
local function paste()
|
||||
return {
|
||||
vim.fn.split(vim.fn.getreg(""), "\n"),
|
||||
vim.fn.getregtype(""),
|
||||
}
|
||||
end
|
||||
|
||||
vim.o.clipboard = "unnamedplus"
|
||||
-- vim.g.clipboard = {
|
||||
-- name = "OSC 52",
|
||||
-- copy = {
|
||||
-- ["+"] = require("vim.ui.clipboard.osc52").copy("+"),
|
||||
-- ["*"] = require("vim.ui.clipboard.osc52").copy("*"),
|
||||
-- },
|
||||
-- paste = {
|
||||
-- ["+"] = paste,
|
||||
-- ["*"] = paste,
|
||||
-- },
|
||||
-- }
|
||||
vim.api.nvim_exec(
|
||||
[[
|
||||
augroup YankHighlight
|
||||
autocmd!
|
||||
autocmd TextYankPost * silent! lua vim.highlight.on_yank()
|
||||
augroup end
|
||||
]],
|
||||
false
|
||||
)
|
||||
|
||||
-- Restore cursor
|
||||
local restore_cursor_augroup = vim.api.nvim_create_augroup("restore_cursor_shape_on_exit", { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd({ "VimLeave" }, {
|
||||
group = restore_cursor_augroup,
|
||||
desc = "restore the cursor shape on exit of neovim",
|
||||
command = "set guicursor=a:ver20",
|
||||
})
|
||||
|
||||
-- Horizontal Split Line
|
||||
vim.opt.laststatus = 3
|
||||
|
||||
-- Padding around current line
|
||||
vim.opt.scrolloff = 5
|
||||
|
||||
-- Highlight current line
|
||||
vim.opt.cursorline = true
|
||||
|
||||
-- Column limit
|
||||
vim.opt.colorcolumn = "80"
|
||||
|
||||
-- Set signcolumn to prevent lsp flickering
|
||||
vim.opt.signcolumn = "yes"
|
||||
|
||||
-- Always show tabline
|
||||
vim.opt.laststatus = 2
|
||||
Loading…
Add table
Add a link
Reference in a new issue