Back in action. Minor changes
Helix is cool, but I'm tired of feeling powerless when something annoys me
- Id
- dd81b6ad7d00123f1623f08afbb1f6fa71e06f06
- Author
- Caio
- Commit time
- 2024-03-18T19:27:32+01:00
Modified init.lua
opt.swapfile = false
opt.smartcase = true
-g.mapleader = ','
+g.mapleader = ' '
-- A way less "in your face" netrw
g.netrw_sizestyle="h"
g.netrw_banner=0
Modified lua/mappings.lua
local map = vim.keymap.set
map('i', "<F1>", "<ESC>")
map('n', "<F1>", "<ESC>")
map('v', "<F1>", "<ESC>")
-map('n', "<space>", "zA")
-map('v', "<space>", "zA")
+map('n', ",", "zA")
+map('v', ",", "zA")
map('v', "'", "`")
map('v', "`", "'")
map('n', ']ed', '<cmd>lua vim.diagnostic.goto_next({ severity = "Error"})<CR>', opts)
map('n', '[ed', '<cmd>lua vim.diagnostic.goto_prev({ severity = "Error"})<CR>', opts)
-- Show a pop-up with the line diagnostic details
-map('n', '<C-n>', '<cmd>lua vim.diagnostic.open_float(nil, { focusable = false })<CR>', opts)
+map('n', '<leader>k', '<cmd>lua vim.diagnostic.open_float(nil, { focusable = false })<CR>', opts)
Modified lua/plugins.lua
use {
'mcchrish/zenbones.nvim',
- requires = { 'rktjmp/lush.nvim', opt = true },
+ requires = { 'rktjmp/lush.nvim' },
config = [[
- vim.g.zenbones_darkness = "warm"
- vim.g.zenbones_lightness = "dim"
-
vim.opt.termguicolors = true
vim.opt.background = "dark"
vim.cmd("colorscheme zenbones")
Modified lua/config/lsp.lua
local opts = { silent = true, noremap = true }
map('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
- map('n', 'gD', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
+ map('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
map('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
- map('n', 'gt', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
+ map('n', 'gy', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
map('n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
map('n', '<leader>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
- map('n', 'ac', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
+ map('n', '<leader>a', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
- map('n', '<leader>t', '<cmd>lua vim.lsp.buf.workspace_symbol()<CR>', opts)
- map('n', '<leader>T', '<cmd>lua vim.lsp.buf.document_symbol()<CR>', opts)
+ map('n', '<leader>s', '<cmd>lua vim.lsp.buf.workspace_symbol()<CR>', opts)
+ map('n', '<leader>S', '<cmd>lua vim.lsp.buf.document_symbol()<CR>', opts)
local cmd = vim.api.nvim_command
-- Format right before saving