nvim and metropolis
This commit is contained in:
@@ -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
@@ -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'
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user