Fix up color scheme
This commit is contained in:
parent
8dfabd16d6
commit
df9619122c
2 changed files with 26 additions and 32 deletions
|
@ -3,16 +3,22 @@ source ~/.vimrc
|
||||||
lua << EOF
|
lua << EOF
|
||||||
local nvim_lsp = require('lspconfig')
|
local nvim_lsp = require('lspconfig')
|
||||||
local coq = require('coq')
|
local coq = require('coq')
|
||||||
local null_ls = require('null-ls')
|
|
||||||
|
|
||||||
require('colorizer').setup()
|
local null_ls = require('null-ls');
|
||||||
require('feline').setup()
|
null_ls.setup{
|
||||||
require('bufferline').setup{}
|
sources = {
|
||||||
require('indent_blankline').setup {
|
null_ls.builtins.diagnostics.php,
|
||||||
-- for example, context is off by default, use this to turn it on
|
null_ls.builtins.formatting.clang_format,
|
||||||
show_current_context = true,
|
null_ls.builtins.formatting.rustfmt,
|
||||||
show_current_context_start = true,
|
null_ls.builtins.formatting.eslint,
|
||||||
|
null_ls.builtins.formatting.phpcsfixer,
|
||||||
|
null_ls.builtins.formatting.prettier,
|
||||||
|
null_ls.builtins.formatting.phpcbf,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
require('colorizer').setup{}
|
||||||
|
require('feline').setup{}
|
||||||
|
require('bufferline').setup{}
|
||||||
|
|
||||||
local servers = { 'html', 'clangd', 'vimls', 'vuels', 'phpactor', 'rust_analyzer', 'tsserver', 'pyright'}
|
local servers = { 'html', 'clangd', 'vimls', 'vuels', 'phpactor', 'rust_analyzer', 'tsserver', 'pyright'}
|
||||||
|
|
||||||
|
@ -27,19 +33,12 @@ local on_attach = function (client, bufnr)
|
||||||
buf_set_keymap('n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<CR>', opts)
|
buf_set_keymap('n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<CR>', opts)
|
||||||
buf_set_keymap('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
|
buf_set_keymap('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
|
||||||
buf_set_keymap('n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
|
buf_set_keymap('n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
|
||||||
-- buf_set_keymap('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
|
buf_set_keymap('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
|
||||||
-- buf_set_keymap('n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
|
buf_set_keymap('n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
|
||||||
-- buf_set_keymap('n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
|
buf_set_keymap('n', '<space>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
|
||||||
-- buf_set_keymap('n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
|
|
||||||
-- buf_set_keymap('n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
|
|
||||||
-- buf_set_keymap('n', '<space>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
|
|
||||||
buf_set_keymap('n', '<space>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
|
buf_set_keymap('n', '<space>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
|
||||||
-- buf_set_keymap('n', '<space>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
|
buf_set_keymap('n', '<space>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
|
||||||
-- buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
|
buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
|
||||||
-- buf_set_keymap('n', '<space>e', '<cmd>lua vim.diagnostic.open_float()<CR>', opts)
|
|
||||||
-- buf_set_keymap('n', '[d', '<cmd>lua vim.diagnostic.goto_prev()<CR>', opts)
|
|
||||||
-- buf_set_keymap('n', ']d', '<cmd>lua vim.diagnostic.goto_next()<CR>', opts)
|
|
||||||
-- buf_set_keymap('n', '<space>q', '<cmd>lua vim.diagnostic.setloclist()<CR>', opts)
|
|
||||||
buf_set_keymap('n', '=', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts)
|
buf_set_keymap('n', '=', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -53,15 +52,4 @@ for _, lsp in ipairs(servers) do
|
||||||
))
|
))
|
||||||
end
|
end
|
||||||
|
|
||||||
null_ls.setup({
|
|
||||||
sources = {
|
|
||||||
null_ls.builtins.diagnostics.php,
|
|
||||||
null_ls.builtins.formatting.clang_format,
|
|
||||||
null_ls.builtins.formatting.rustfmt,
|
|
||||||
null_ls.builtins.formatting.eslint,
|
|
||||||
null_ls.builtins.formatting.phpcsfixer,
|
|
||||||
null_ls.builtins.formatting.prettier,
|
|
||||||
null_ls.builtins.formatting.phpcbf,
|
|
||||||
}
|
|
||||||
});
|
|
||||||
EOF
|
EOF
|
||||||
|
|
8
.vimrc
8
.vimrc
|
@ -19,7 +19,6 @@ if has('nvim')
|
||||||
Plug 'ray-x/lsp_signature.nvim'
|
Plug 'ray-x/lsp_signature.nvim'
|
||||||
Plug 'jose-elias-alvarez/null-ls.nvim'
|
Plug 'jose-elias-alvarez/null-ls.nvim'
|
||||||
Plug 'nvim-telescope/telescope.nvim'
|
Plug 'nvim-telescope/telescope.nvim'
|
||||||
Plug 'lukas-reineke/indent-blankline.nvim'
|
|
||||||
Plug 'norcalli/nvim-colorizer.lua'
|
Plug 'norcalli/nvim-colorizer.lua'
|
||||||
endif
|
endif
|
||||||
Plug 'andymass/vim-matchup'
|
Plug 'andymass/vim-matchup'
|
||||||
|
@ -32,6 +31,8 @@ Plug 'justinmk/vim-sneak'
|
||||||
Plug 'alvan/vim-closetag'
|
Plug 'alvan/vim-closetag'
|
||||||
Plug 'mipmip/vim-fluid'
|
Plug 'mipmip/vim-fluid'
|
||||||
Plug 'puremourning/vimspector'
|
Plug 'puremourning/vimspector'
|
||||||
|
|
||||||
|
Plug 'ghifarit53/tokyonight-vim'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
|
@ -84,3 +85,8 @@ set fileformats=unix,dos,mac
|
||||||
|
|
||||||
" Enable term color
|
" Enable term color
|
||||||
set tgc
|
set tgc
|
||||||
|
|
||||||
|
let g:tokyonight_style = 'night' " available: night, storm
|
||||||
|
let g:tokyonight_enable_italic = 0
|
||||||
|
|
||||||
|
colorscheme tokyonight
|
||||||
|
|
Loading…
Reference in a new issue