new nvim conf
This commit is contained in:
8
nvim/.config/nvim/lua/configs.lua
Normal file
8
nvim/.config/nvim/lua/configs.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
local opt = vim.opt
|
||||
|
||||
opt.number = true
|
||||
opt.relativenumber = true
|
||||
opt.swapfile = false
|
||||
opt.wrap = false
|
||||
opt.splitright = true
|
||||
opt.splitbelow = true
|
||||
12
nvim/.config/nvim/lua/keymaps.lua
Normal file
12
nvim/.config/nvim/lua/keymaps.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
local keymap = vim.keymap.set
|
||||
|
||||
keymap("n", "<Esc>", ":nohlsearch<CR>")
|
||||
keymap("n", "<leader>en", ":edit $MYVIMRC<CR>")
|
||||
keymap("n", "<leader>ez", ":edit ~/.zshrc<CR>")
|
||||
|
||||
keymap("v", "J", ":m '>+1<CR>gv=gv")
|
||||
keymap("v", "K", ":m '<-2<CR>gv=gv")
|
||||
|
||||
for _, k in ipairs({ "h", "j", "k", "l" }) do
|
||||
keymap({ "n", "i", "v" }, "<C-" .. k .. ">", "<C-w><C-" .. k .. ">")
|
||||
end
|
||||
8
nvim/.config/nvim/lua/lsp.lua
Normal file
8
nvim/.config/nvim/lua/lsp.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
vim.lsp.enable {
|
||||
"bashls",
|
||||
"gopls",
|
||||
"lua_ls",
|
||||
"clangd",
|
||||
}
|
||||
|
||||
vim.diagnostic.config { virtual_text = true, underline = true, signs = false }
|
||||
10
nvim/.config/nvim/lua/plugins.lua
Normal file
10
nvim/.config/nvim/lua/plugins.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
vim.g.mapleader = " "
|
||||
|
||||
vim.pack.add {
|
||||
{ src = "https://github.com/mason-org/mason.nvim" },
|
||||
{ src = "https://github.com/scottmckendry/cyberdream.nvim" },
|
||||
}
|
||||
|
||||
require("mason").setup {}
|
||||
|
||||
vim.cmd("colorscheme cyberdream")
|
||||
Reference in New Issue
Block a user