nvim and metropolis

This commit is contained in:
h
2024-06-24 17:24:25 -04:00
parent df57954e4f
commit 77d7676753
18 changed files with 2861 additions and 21 deletions
+5 -2
View File
@@ -30,10 +30,13 @@ vim.cmd [[
o.spelllang = "en_us"
map('i', '<C-L>', '<c-g>u<Esc>[s1z=`]a<c-g>u', { noremap = true })
vim.cmd('colorscheme theme')
vim.cmd('colorscheme theme-nvim')
vim.g.airline_theme = 'theme'
local color = require('base16-colorscheme').colors.base02
vim.api.nvim_set_hl(0, 'LineNr', { fg = color, bg = "none" })
map('n', '<Leader>s', ':%s//g<Left><Left>', {})
map('n', '<Leader>e', ':make!<CR>', { noremap = true })
map('n', '<C-o>', ':cclose<CR>', { noremap = true })
+2 -15
View File
@@ -8,6 +8,8 @@ return require('packer').startup({
function(use)
use 'wbthomason/packer.nvim'
use 'RRethy/base16-nvim'
use {
'vim-airline/vim-airline',
requires = {
@@ -61,34 +63,19 @@ return require('packer').startup({
require('gitsigns').setup {
signs = {
add = {
hl = 'GitSignsAdd',
text = '',
numhl = 'GitSignsAddNr',
linehl = 'GitSignsAddLn'
},
change = {
hl = 'GitSignsChange',
text = '',
numhl = 'GitSignsChangeNr',
linehl = 'GitSignsChangeLn'
},
delete = {
hl = 'GitSignsDelete',
text = '_',
numhl = 'GitSignsDeleteNr',
linehl = 'GitSignsDeleteLn'
},
topdelete = {
hl = 'GitSignsDelete',
text = '',
numhl = 'GitSignsDeleteNr',
linehl = 'GitSignsDeleteLn'
},
changedelete = {
hl = 'GitSignsChange',
text = '~',
numhl = 'GitSignsChangeNr',
linehl = 'GitSignsChangeLn'
},
},
}
+1
View File
@@ -193,6 +193,7 @@ map('n', '<Leader>p', ':Telescope ', { noremap = true })
map('n', '<Leader>p ', ':Telescope ', { noremap = true })
map('n', '<Leader>.', ':lua vim.lsp.buf.code_action()<CR>', { noremap = true })
map('n', '<Leader>pn', '<Cmd>lua vim.lsp.buf.rename()<CR>', { noremap = true })
-- vim.cmd [[
-- function! s:telescope_hlsetup() abort
+5
View File
@@ -198,6 +198,11 @@ snippet norm "Norm" iA
\|$1\|$0
endsnippet
context "math()"
snippet nrml "Normal Subgroup" iA
\triangleleft
endsnippet
context "math()"
snippet nabl "Nabla" iA
\nabla