examples/nvim: Added some example files
These file should be added to ~/.config/nvim and can be used as the basis for customizations you want to add
This commit is contained in:
parent
b95014ff08
commit
b4ac43c337
|
@ -0,0 +1,74 @@
|
|||
{
|
||||
// cspell: enableCompoundWords
|
||||
"coc.preferences.formatOnSaveFiletypes": [
|
||||
"json",
|
||||
"jsonc",
|
||||
"rust",
|
||||
"markdown",
|
||||
"xml",
|
||||
"html",
|
||||
"css",
|
||||
"lua",
|
||||
"go"
|
||||
],
|
||||
"markdownlint.config": {
|
||||
"line-length": {
|
||||
"line_length": 120
|
||||
}
|
||||
},
|
||||
"coc.preferences.enableMarkdown": false,
|
||||
"prettier.proseWrap": "always",
|
||||
"diagnostic.errorSign": "", // ••
|
||||
"diagnostic.warningSign": "", // •
|
||||
"diagnostic.hintSign": "", // •
|
||||
"diagnostic.infoSign": "", // •
|
||||
"diagnostic.checkCurrentLine": false,
|
||||
"diagnostic.level": "hint",
|
||||
"diagnostic.autoRefresh": true,
|
||||
"diagnostic.refreshOnInsertMode": false,
|
||||
"diagnostic.locationlistUpdate": true,
|
||||
"diagnostic.virtualText": true,
|
||||
"diagnostic.signPriority": 20,
|
||||
"diagnostic.enableHighlightLineNumber": false,
|
||||
"suggest.disableMenu": false,
|
||||
"suggest.snippetIndicator": "",
|
||||
"suggest.languageSourcePriority": 100,
|
||||
"suggest.enablePreview": true,
|
||||
"suggest.removeDuplicateItems": true,
|
||||
"suggest.detailField": "preview",
|
||||
"suggest.labelMaxLength": 100,
|
||||
"suggest.noselect": false,
|
||||
"suggest.selection": "recentlyUsedByPrefix",
|
||||
"suggest.acceptSuggestionOnCommitCharacter": true,
|
||||
"suggest.completionItemKindLabels": {
|
||||
"default": "",
|
||||
"text": "", //
|
||||
"method": "", //
|
||||
"function": "", // ƒ
|
||||
"constructor": "", //
|
||||
"field": "", // 料
|
||||
"variable": "", //
|
||||
"class": "", // ﴯ
|
||||
"interface": "", //
|
||||
"module": "", //
|
||||
"property": "", // ﰠ
|
||||
"unit": "", // 塞
|
||||
"value": "",
|
||||
"enum": "", //
|
||||
"keyword": "", //
|
||||
"snippet": "", //
|
||||
"color": "",
|
||||
"file": "", //
|
||||
"reference": "", // 渚
|
||||
"folder": "", //
|
||||
"enumMember": "", //
|
||||
"constant": "", //
|
||||
"struct": "פּ", //
|
||||
"event": "", // 鬒
|
||||
"operator": "Ψ", //
|
||||
"typeParameter": "" //
|
||||
},
|
||||
"Lua.telemetry.enable": false
|
||||
// cspell: ignore struct
|
||||
// vim: filetype=jsonc
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
vim.opt.rtp:append( os.getenv('PSOXIZSH') .. '/nvim' )
|
||||
|
||||
require 'psoxizsh'
|
|
@ -0,0 +1,250 @@
|
|||
return {
|
||||
options = {
|
||||
separator_style = "slant"
|
||||
},
|
||||
highlights = {
|
||||
background = {
|
||||
bg = '#222222',
|
||||
fg = '#FFFFFF',
|
||||
italic = true,
|
||||
},
|
||||
separator = {
|
||||
fg = '#000000',
|
||||
bg = '#222222',
|
||||
},
|
||||
modified = {
|
||||
bg = '#112244',
|
||||
fg = '#CC5555',
|
||||
bold = true,
|
||||
italic = true,
|
||||
},
|
||||
modified_visible = {
|
||||
bg = '#224411',
|
||||
fg = '#CC5555',
|
||||
bold = true,
|
||||
italic = true,
|
||||
},
|
||||
modified_selected = {
|
||||
bg = '#114422',
|
||||
fg = '#CC5555',
|
||||
bold = true,
|
||||
italic = true,
|
||||
},
|
||||
separator_selected = {
|
||||
bg = '#114422',
|
||||
fg = '#000000',
|
||||
},
|
||||
buffer_selected = {
|
||||
bg = '#114422',
|
||||
fg = '#FFFFFF',
|
||||
italic = true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
--[[
|
||||
--highlights = {
|
||||
fill = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>',
|
||||
},
|
||||
background = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
tab = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
tab_selected = {
|
||||
guifg = tabline_sel_bg,
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
tab_close = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
close_button = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
close_button_visible = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
close_button_selected = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
buffer_visible = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
buffer_selected = {
|
||||
guifg = normal_fg,
|
||||
guibg = '<color-value-here>',
|
||||
gui = "bold,italic"
|
||||
},
|
||||
diagnostic = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>',
|
||||
},
|
||||
diagnostic_visible = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>',
|
||||
},
|
||||
diagnostic_selected = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>',
|
||||
gui = "bold,italic"
|
||||
},
|
||||
info = {
|
||||
guifg = '<color-value-here>',
|
||||
guisp = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
info_visible = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
info_selected = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>',
|
||||
gui = "bold,italic",
|
||||
guisp = '<color-value-here>'
|
||||
},
|
||||
info_diagnostic = {
|
||||
guifg = '<color-value-here>',
|
||||
guisp = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
info_diagnostic_visible = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
info_diagnostic_selected = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>',
|
||||
gui = "bold,italic",
|
||||
guisp = '<color-value-here>'
|
||||
},
|
||||
warning = {
|
||||
guifg = '<color-value-here>',
|
||||
guisp = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
warning_visible = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
warning_selected = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>',
|
||||
gui = "bold,italic",
|
||||
guisp = '<color-value-here>'
|
||||
},
|
||||
warning_diagnostic = {
|
||||
guifg = '<color-value-here>',
|
||||
guisp = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
warning_diagnostic_visible = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
warning_diagnostic_selected = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>',
|
||||
gui = "bold,italic",
|
||||
guisp = warning_diagnostic_fg
|
||||
},
|
||||
error = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>',
|
||||
guisp = '<color-value-here>'
|
||||
},
|
||||
error_visible = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
error_selected = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>',
|
||||
gui = "bold,italic",
|
||||
guisp = '<color-value-here>'
|
||||
},
|
||||
error_diagnostic = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>',
|
||||
guisp = '<color-value-here>'
|
||||
},
|
||||
error_diagnostic_visible = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
error_diagnostic_selected = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>',
|
||||
gui = "bold,italic",
|
||||
guisp = '<color-value-here>'
|
||||
},
|
||||
modified = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
modified_visible = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
modified_selected = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
duplicate_selected = {
|
||||
guifg = '<color-value-here>',
|
||||
gui = "italic",
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
duplicate_visible = {
|
||||
guifg = '<color-value-here>',
|
||||
gui = "italic",
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
duplicate = {
|
||||
guifg = '<color-value-here>',
|
||||
gui = "italic",
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
separator_selected = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
separator_visible = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
separator = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
indicator_selected = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>'
|
||||
},
|
||||
pick_selected = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>',
|
||||
gui = "bold,italic"
|
||||
},
|
||||
pick_visible = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>',
|
||||
gui = "bold,italic"
|
||||
},
|
||||
pick = {
|
||||
guifg = '<color-value-here>',
|
||||
guibg = '<color-value-here>',
|
||||
gui = "bold,italic"
|
||||
}
|
||||
};
|
||||
]]
|
|
@ -0,0 +1,24 @@
|
|||
-- $PSOXIZSH/nvim/lua/psoxizsh/lsp/preset.lua
|
||||
|
||||
local Server = require 'psoxizsh.lsp.preset'
|
||||
|
||||
return {
|
||||
Server.DockerFile,
|
||||
Server.Go,
|
||||
Server.Rust,
|
||||
Server.Terraform,
|
||||
--[[
|
||||
Server.Rust.with {
|
||||
server = {
|
||||
settings = {
|
||||
['rust-analyzer'] = {
|
||||
rustfmt = {
|
||||
extraArgs = { '+nightly' }
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
crate_graph = { ... }
|
||||
}
|
||||
]]
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
return function()
|
||||
local custom_gruvbox = require'lualine.themes.gruvbox'
|
||||
|
||||
custom_gruvbox.normal.c.bg = '#001122'
|
||||
|
||||
return {
|
||||
options = { theme = custom_gruvbox }
|
||||
}
|
||||
end
|
|
@ -0,0 +1,9 @@
|
|||
return function()
|
||||
return {
|
||||
colors = {
|
||||
onedark = {
|
||||
bg = '#17170F'
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
|
@ -0,0 +1,6 @@
|
|||
vim.g.mapleader = ','
|
||||
-- vim.g.my_color_scheme = 'Tomorrow-Night-Bright'
|
||||
|
||||
-- $PSOXIZSH/nvim/lua/psoxizsh/key/map.lua
|
||||
-- $PSOXIZSH/nvim/lua/psoxizsh/key/bind.lua
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
-- psox local nvim config
|
||||
--
|
||||
|
||||
-- if (vim.g.neovide)
|
||||
-- then
|
||||
-- end
|
||||
|
||||
-- Don't fold markdown by default
|
||||
vim.g.vim_markdown_folding_disabled = 1
|
||||
vim.g.vim_markdown_toc_autofit = 1
|
||||
vim.g.vim_markdown_fenced_languages = { 'viml=vim', 'bash=sh', 'ini=dosini', 'zsh=zsh', 'rs=rust', 'c++=cpp', }
|
||||
vim.g.vim_markdown_conceal = 0
|
||||
vim.g.vim_markdown_math = 1
|
||||
vim.g.tex_conceal = ""
|
||||
vim.g.vim_markdown_conceal_code_blocks = 0
|
||||
vim.g.neovide_cursor_vfx_mode = ''
|
||||
vim.g.neovide_cursor_animation_length = 0.0
|
||||
vim.opt.mouse = 'a'
|
||||
|
||||
local hl = require 'psoxizsh.util.highlight'
|
||||
|
||||
hl.Comment { italic = true }
|
||||
hl.RustCommentLine { italic = true }
|
||||
hl.RustCommentLineDoc { italic = true }
|
||||
hl.Whitespace { fg = 'White' }
|
||||
hl.NonText { fg = 'Gray' }
|
||||
|
||||
vim.cmd [[
|
||||
" highlight RustCommentLine cterm=italic gui=italic
|
||||
" highlight RustCommentLineDoc cterm=italic gui=italic
|
||||
" highlight Whitespace ctermfg=White guifg=White
|
||||
" highlight NonText ctermfg=Gray guifg=#333333
|
||||
highlight GitGutterAdd guibg=#333333 guifg=#44DD44
|
||||
highlight GitGutterChange guibg=#333333 guifg=#DDDD44
|
||||
highlight GitGutterDelete guibg=#333333 guifg=#DD4444
|
||||
highlight GitGutterChangeDelete guibg=#333333 guifg=#DDAA44
|
||||
highlight Comment guifg=#999999
|
||||
highlight Boolean guifg=#33DD22
|
||||
highlight PmenuSel ctermfg=Blue ctermbg=0 guibg=#b3cc57 guifg=#003355
|
||||
highlight Pmenu ctermbg=black ctermfg=white guibg=#222244
|
||||
highlight Visual ctermfg=Blue ctermbg=0 guibg=#b3cc57
|
||||
highlight IndentGuidesOdd guibg=DarkGray ctermbg=DarkGray
|
||||
highlight IndentGuidesEven guibg=DarkBlue ctermbg=DarkBlue
|
||||
]]
|
||||
|
||||
|
||||
local keys, bind = require 'psoxizsh.key.map', require 'psoxizsh.key.bind'
|
||||
local G, B = bind.Group, bind.MkBind
|
||||
local Normal = keys.Global.N
|
||||
|
||||
Normal.NavigateLeft { skip = true }
|
||||
Normal.NavigateDown { skip = true }
|
||||
Normal.NavigateUp { skip = true }
|
||||
Normal.NavigateRight { skip = true }
|
||||
|
||||
keys.Buffer.Lsp.N.CodeAction = B { label = "Code Action", key = ".", action = vim.lsp.buf.code_action , prefix='<Leader>'}
|
||||
|
||||
keys.User.N {
|
||||
{ mode = 'n' },
|
||||
|
||||
ToggleColorizer = B { 'Toggle Colorizer', 'H', '<cmd>ColorToggle<CR>', prefix = '<Leader>' },
|
||||
SaveAll = B { 'Save all buffers', '<C-S><C-S>', '<cmd>wall<CR>' },
|
||||
SaveAllQuit = B { label = 'Save all and quit', key = '<C-S><C-Q>', action = '<cmd>wqa<CR>' },
|
||||
}
|
||||
|
||||
keys.User.I {
|
||||
{ mode = 'i' },
|
||||
|
||||
SaveAll = B { 'Save all buffers', '<C-S><C-S>', '<C-O><cmd>wall<CR>', mode = 'i' },
|
||||
SaveAllQuit = B { label = 'Save all and quit', key = '<C-S><C-Q>', action = '<C-O><cmd>wqa<CR>', mode = 'i' },
|
||||
}
|
||||
|
||||
keys.User:register()
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
return {
|
||||
{ 'chrisbra/Colorizer' },
|
||||
{ 'freitass/todo.txt-vim' },
|
||||
{ 'godlygeek/tabular' },
|
||||
{ 'hashivim/vim-hashicorp-tools' },
|
||||
-- { 'junegunn/vim-easy-align' },
|
||||
{ 'nathanaelkane/vim-indent-guides' },
|
||||
{ 'mzlogin/vim-markdown-toc' },
|
||||
{ 'plasticboy/vim-markdown' },
|
||||
-- { 'mzlogin/vim-markdown-toc' },
|
||||
-- { 'bignimbus/pop-punk.vim' },
|
||||
{ 'dhruvasagar/vim-table-mode' },
|
||||
{ 'tpope/vim-surround' },
|
||||
{ 'chriskempson/vim-tomorrow-theme' },
|
||||
}
|
||||
-- cspell:ignore tpope dhruvasagar mzlogin Yggdroot hashivim
|
Loading…
Reference in New Issue