mirror of
https://github.com/macocianradu/setup.git
synced 2026-03-18 21:00:04 +00:00
first setup
This commit is contained in:
2
.config/nvim/lua/wicked/init.lua
Normal file
2
.config/nvim/lua/wicked/init.lua
Normal file
@@ -0,0 +1,2 @@
|
||||
require("wicked.remap")
|
||||
require("wicked.set")
|
||||
0
.config/nvim/lua/wicked/init.lua:Zone.Identifier
Normal file
0
.config/nvim/lua/wicked/init.lua:Zone.Identifier
Normal file
55
.config/nvim/lua/wicked/packer.lua
Normal file
55
.config/nvim/lua/wicked/packer.lua
Normal file
@@ -0,0 +1,55 @@
|
||||
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
|
||||
|
||||
-- Only required if you have packer configured as `opt`
|
||||
vim.cmd [[packadd packer.nvim]]
|
||||
|
||||
return require('packer').startup(function(use)
|
||||
-- Packer can manage itself
|
||||
use 'wbthomason/packer.nvim'
|
||||
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim', tag = '0.1.8',
|
||||
-- or , branch = '0.1.x',
|
||||
requires = { { 'nvim-lua/plenary.nvim' } }
|
||||
}
|
||||
|
||||
use({
|
||||
'neanias/everforest-nvim',
|
||||
config = function()
|
||||
vim.cmd('colorscheme everforest')
|
||||
end
|
||||
})
|
||||
|
||||
use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
|
||||
use('nvim-treesitter/playground')
|
||||
use('theprimeagen/harpoon')
|
||||
use('mbbill/undotree')
|
||||
use('tpope/vim-fugitive')
|
||||
use('idanarye/vim-merginal')
|
||||
use('williamboman/mason.nvim')
|
||||
use('williamboman/mason-lspconfig.nvim')
|
||||
use('seblj/roslyn.nvim')
|
||||
use('neovim/nvim-lspconfig')
|
||||
use {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
requires = { 'nvim-tree/nvim-web-devicons', opt = true }
|
||||
}
|
||||
|
||||
use {
|
||||
'VonHeikemen/lsp-zero.nvim',
|
||||
branch = 'v3.x',
|
||||
requires = {
|
||||
--- Uncomment the two plugins below if you want to manage the language servers from neovim
|
||||
|
||||
{ 'hrsh7th/nvim-cmp' },
|
||||
{ 'hrsh7th/cmp-nvim-lsp' },
|
||||
{ 'L3MON4D3/LuaSnip' },
|
||||
}
|
||||
}
|
||||
use {
|
||||
'MoaidHathot/dotnet.nvim',
|
||||
config = function()
|
||||
require("dotnet").setup({})
|
||||
end
|
||||
}
|
||||
end)
|
||||
0
.config/nvim/lua/wicked/packer.lua:Zone.Identifier
Normal file
0
.config/nvim/lua/wicked/packer.lua:Zone.Identifier
Normal file
41
.config/nvim/lua/wicked/remap.lua
Normal file
41
.config/nvim/lua/wicked/remap.lua
Normal file
@@ -0,0 +1,41 @@
|
||||
vim.g.mapleader = " "
|
||||
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
|
||||
|
||||
vim.keymap.set("n", "<leader>pv", ":Ex<CR>")
|
||||
vim.keymap.set("n", "<leader>u", ":UndotreeShow<CR>")
|
||||
|
||||
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
||||
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
||||
|
||||
vim.keymap.set("n", "Y", "yg$")
|
||||
vim.keymap.set("n", "J", "mzJ`z")
|
||||
vim.keymap.set("n", "<C-d>", "<C-d>zz")
|
||||
vim.keymap.set("n", "<C-u>", "<C-u>zz")
|
||||
vim.keymap.set("n", "n", "nzzzv")
|
||||
vim.keymap.set("n", "N", "Nzzzv")
|
||||
|
||||
vim.keymap.set("x", "<leader>p", "\"_dP")
|
||||
|
||||
vim.keymap.set("n", "<leader>y", "\"+y")
|
||||
vim.keymap.set("v", "<leader>y", "\"+y")
|
||||
vim.keymap.set("n", "<leader>Y", "\"+Y")
|
||||
|
||||
vim.keymap.set("n", "<leader>d", "\"_d")
|
||||
vim.keymap.set("v", "<leader>d", "\"_d")
|
||||
|
||||
vim.keymap.set("i", "<C-c>", "<Esc>")
|
||||
vim.keymap.set("t", "<Esc>", "<C-\\><C-n>")
|
||||
|
||||
vim.keymap.set("n", "Q", "<nop>")
|
||||
vim.keymap.set("n", "<C-f>", "<cmd>silent !tmux neww tmux-sessionizer<CR>")
|
||||
vim.keymap.set("n", "<leader>f", function()
|
||||
vim.lsp.buf.format()
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<C-k>", "<cmd>cnext<CR>zz")
|
||||
vim.keymap.set("n", "<C-j>", "<cmd>cprev<CR>zz")
|
||||
vim.keymap.set("n", "<leader>k", "<cmd>lnext<CR>zz")
|
||||
vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz")
|
||||
|
||||
vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gi<Left><Left><Left>]])
|
||||
vim.keymap.set("n", "<leader>x", "<cmd>!chmod _x %<CR>", { silent = true})
|
||||
0
.config/nvim/lua/wicked/remap.lua:Zone.Identifier
Normal file
0
.config/nvim/lua/wicked/remap.lua:Zone.Identifier
Normal file
32
.config/nvim/lua/wicked/set.lua
Normal file
32
.config/nvim/lua/wicked/set.lua
Normal file
@@ -0,0 +1,32 @@
|
||||
vim.opt.nu = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
vim.opt.tabstop = 4
|
||||
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.expandtab = true
|
||||
|
||||
vim.opt.smartindent = true
|
||||
|
||||
vim.opt.wrap = false
|
||||
|
||||
vim.opt.swapfile = true
|
||||
vim.opt.backup = false
|
||||
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
||||
vim.opt.undofile = true
|
||||
|
||||
vim.opt.hlsearch = false
|
||||
vim.opt.incsearch = true
|
||||
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
vim.opt.scrolloff = 8
|
||||
vim.opt.signcolumn = "yes"
|
||||
vim.opt.isfname:append("@-@")
|
||||
|
||||
vim.opt.updatetime = 50
|
||||
|
||||
vim.opt.colorcolumn = "80"
|
||||
|
||||
vim.g.mapleader = " "
|
||||
0
.config/nvim/lua/wicked/set.lua:Zone.Identifier
Normal file
0
.config/nvim/lua/wicked/set.lua:Zone.Identifier
Normal file
Reference in New Issue
Block a user