mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-23 20:14:11 -05:00
Compare commits
No commits in common. "432d4768db4ec70cd0d3ed7e22c324f7be379375" and "2d5339fffd56fed9c53302afa4c87b78c0f043d3" have entirely different histories.
432d4768db
...
2d5339fffd
14 changed files with 30 additions and 96 deletions
12
.gitmodules
vendored
12
.gitmodules
vendored
|
@ -7,6 +7,9 @@
|
||||||
[submodule "vim/bundle/lightline.vim"]
|
[submodule "vim/bundle/lightline.vim"]
|
||||||
path = vim/bundle/lightline.vim
|
path = vim/bundle/lightline.vim
|
||||||
url = https://github.com/itchyny/lightline.vim
|
url = https://github.com/itchyny/lightline.vim
|
||||||
|
[submodule "vim/bundle/vim-surround"]
|
||||||
|
path = vim/bundle/vim-surround
|
||||||
|
url = https://github.com/tpope/vim-surround.git
|
||||||
[submodule "vim/bundle/tagbar"]
|
[submodule "vim/bundle/tagbar"]
|
||||||
path = vim/bundle/tagbar
|
path = vim/bundle/tagbar
|
||||||
url = https://github.com/majutsushi/tagbar
|
url = https://github.com/majutsushi/tagbar
|
||||||
|
@ -85,12 +88,3 @@
|
||||||
[submodule "vim/bundle/cmp-omni"]
|
[submodule "vim/bundle/cmp-omni"]
|
||||||
path = vim/bundle/cmp-omni
|
path = vim/bundle/cmp-omni
|
||||||
url = https://github.com/hrsh7th/cmp-omni
|
url = https://github.com/hrsh7th/cmp-omni
|
||||||
[submodule "vim/bundle/cmp-async-path"]
|
|
||||||
path = vim/bundle/cmp-async-path
|
|
||||||
url = https://codeberg.org/FelipeLema/cmp-async-path
|
|
||||||
[submodule "vim/bundle/nvim-treesitter-textobjects"]
|
|
||||||
path = vim/bundle/nvim-treesitter-textobjects
|
|
||||||
url = https://github.com/nvim-treesitter/nvim-treesitter-textobjects
|
|
||||||
[submodule "vim/bundle/nvim-surround"]
|
|
||||||
path = vim/bundle/nvim-surround
|
|
||||||
url = https://github.com/kylechui/nvim-surround
|
|
||||||
|
|
23
init.vim
23
init.vim
|
@ -15,7 +15,7 @@
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
"add config directory: (distro-agnostic system-wide)
|
"add config directory: (distro-agnostic system-wide)
|
||||||
let &runtimepath = printf("%s,%s/vim,%s/vim/after,%s/local", &runtimepath, g:darkcloudpath, g:darkcloudpath, g:darkcloudpath)
|
let &runtimepath = printf('%s,%s/vim,%s/vim/after,%s/local', &runtimepath, g:darkcloudpath, g:darkcloudpath, g:darkcloudpath)
|
||||||
|
|
||||||
"load colours
|
"load colours
|
||||||
if &term != "linux"
|
if &term != "linux"
|
||||||
|
@ -43,21 +43,20 @@ runtime config/settings.vim
|
||||||
let g:pathogen_disabled = get(g:, "pathogen_disabled", [])
|
let g:pathogen_disabled = get(g:, "pathogen_disabled", [])
|
||||||
|
|
||||||
"don't load vim-gutentags if g:enableautotags is false or ctags isn't in path
|
"don't load vim-gutentags if g:enableautotags is false or ctags isn't in path
|
||||||
if !g:enableautotags || !executable("ctags")
|
if !g:enableautotags || !executable('ctags')
|
||||||
call add(g:pathogen_disabled, "vim-gutentags")
|
call add(g:pathogen_disabled, 'vim-gutentags')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
"don't load nvim-cmp or its dependencies if g:enablecompletion is false
|
"don't load nvim-cmp or its dependencies if g:enablecompletion is false
|
||||||
if !g:enablecompletion
|
if !g:enablecompletion
|
||||||
call add(g:pathogen_disabled, "cmp-async-path")
|
call add(g:pathogen_disabled, 'nvim-cmp')
|
||||||
call add(g:pathogen_disabled, "cmp-buffer")
|
call add(g:pathogen_disabled, 'cmp-buffer')
|
||||||
call add(g:pathogen_disabled, "cmp-nvim-tags")
|
call add(g:pathogen_disabled, 'cmp-nvim-tags')
|
||||||
call add(g:pathogen_disabled, "cmp-omni")
|
call add(g:pathogen_disabled, 'cmp-omni')
|
||||||
call add(g:pathogen_disabled, "cmp-snippy")
|
call add(g:pathogen_disabled, 'cmp-snippy')
|
||||||
call add(g:pathogen_disabled, "cmp-treesitter")
|
call add(g:pathogen_disabled, 'cmp-treesitter')
|
||||||
call add(g:pathogen_disabled, "nvim-cmp")
|
call add(g:pathogen_disabled, 'nvim-snippy')
|
||||||
call add(g:pathogen_disabled, "nvim-snippy")
|
call add(g:pathogen_disabled, 'vim-snippets')
|
||||||
call add(g:pathogen_disabled, "vim-snippets")
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
"use pathogen to load plugins that haven't been disabled
|
"use pathogen to load plugins that haven't been disabled
|
||||||
|
|
|
@ -121,7 +121,6 @@ For a complete list of mappings specific to **darkcloud-nvimconfig**, check the
|
||||||
* [lightline.vim](https://github.com/itchyny/lightline.vim): A light and configurable statusline/tabline for Vim
|
* [lightline.vim](https://github.com/itchyny/lightline.vim): A light and configurable statusline/tabline for Vim
|
||||||
* [lightline-ale](https://github.com/maximbaz/lightline-ale): Provides ALE indicator for the lightline vim plugin
|
* [lightline-ale](https://github.com/maximbaz/lightline-ale): Provides ALE indicator for the lightline vim plugin
|
||||||
* [nvim-cmp](https://github.com/hrsh7th/nvim-cmp): A completion engine plugin for neovim written in Lua
|
* [nvim-cmp](https://github.com/hrsh7th/nvim-cmp): A completion engine plugin for neovim written in Lua
|
||||||
* [cmp-async-path](https://codeberg.org/FelipeLema/cmp-async-path): Async filesystem path source for nvim-cmp
|
|
||||||
* [cmp-buffer](https://github.com/hrsh7th/cmp-buffer): Buffer words source for nvim-cmp
|
* [cmp-buffer](https://github.com/hrsh7th/cmp-buffer): Buffer words source for nvim-cmp
|
||||||
* [cmp-nvim-tags](https://github.com/quangnguyen30192/cmp-nvim-tags): Tags source for nvim-cmp
|
* [cmp-nvim-tags](https://github.com/quangnguyen30192/cmp-nvim-tags): Tags source for nvim-cmp
|
||||||
* [cmp-omni](https://github.com/hrsh7th/cmp-omni): Omnifunc source for cmp-nvim
|
* [cmp-omni](https://github.com/hrsh7th/cmp-omni): Omnifunc source for cmp-nvim
|
||||||
|
@ -129,9 +128,7 @@ For a complete list of mappings specific to **darkcloud-nvimconfig**, check the
|
||||||
* [cmp-treesitter](https://github.com/ray-x/cmp-treesitter): Treesitter source for nvim-cmp
|
* [cmp-treesitter](https://github.com/ray-x/cmp-treesitter): Treesitter source for nvim-cmp
|
||||||
* [nvim-snippy](https://github.com/dcampos/nvim-snippy): Snippet plugin for Neovim written in Lua
|
* [nvim-snippy](https://github.com/dcampos/nvim-snippy): Snippet plugin for Neovim written in Lua
|
||||||
* [vim-snippets](https://github.com/honza/vim-snippets): Snippets files for various programming languages
|
* [vim-snippets](https://github.com/honza/vim-snippets): Snippets files for various programming languages
|
||||||
* [nvim-surround](https://github.com/kylechui/nvim-surround): Add/change/delete surrounding delimiter pairs with ease
|
|
||||||
* [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter): Treesitter configurations and abstraction layer for Neovim
|
* [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter): Treesitter configurations and abstraction layer for Neovim
|
||||||
* [nvim-treesitter-textobjects](https://github.com/nvim-treesitter/nvim-treesitter-textobjects): Syntax aware text-objects, select, move, swap, and peek support
|
|
||||||
* [ReplaceWithRegister](https://github.com/vim-scripts/ReplaceWithRegister): Replace text with the contents of a register (for paste+replace without writing over the buffer)
|
* [ReplaceWithRegister](https://github.com/vim-scripts/ReplaceWithRegister): Replace text with the contents of a register (for paste+replace without writing over the buffer)
|
||||||
* [splitjoin.vim](https://github.com/AndrewRadev/splitjoin.vim): Simplifies the transition between multiline and single-line code
|
* [splitjoin.vim](https://github.com/AndrewRadev/splitjoin.vim): Simplifies the transition between multiline and single-line code
|
||||||
* [tabular](https://github.com/godlygeek/tabular): Vim script for text filtering and alignment
|
* [tabular](https://github.com/godlygeek/tabular): Vim script for text filtering and alignment
|
||||||
|
@ -142,10 +139,11 @@ For a complete list of mappings specific to **darkcloud-nvimconfig**, check the
|
||||||
* [vim-pathogen](https://github.com/tpope/vim-pathogen): A plugin to load other plugins while keeping them isolated in their own directory structure rather than all dumped together
|
* [vim-pathogen](https://github.com/tpope/vim-pathogen): A plugin to load other plugins while keeping them isolated in their own directory structure rather than all dumped together
|
||||||
* [vim-polyglot-darkcloud](https://github.com/prurigro/vim-polyglot-darkcloud): The darkcloud-nvimconfig fork of a meta-package that attempts to provide the best syntax plugins for each file type
|
* [vim-polyglot-darkcloud](https://github.com/prurigro/vim-polyglot-darkcloud): The darkcloud-nvimconfig fork of a meta-package that attempts to provide the best syntax plugins for each file type
|
||||||
* [vim-signify](https://github.com/mhinz/vim-signify): When a version controlled file is changed, this displays a column showing where and how, and allows for navigation to and between differences
|
* [vim-signify](https://github.com/mhinz/vim-signify): When a version controlled file is changed, this displays a column showing where and how, and allows for navigation to and between differences
|
||||||
|
* [vim-surround](https://github.com/tpope/vim-surround): Provides functionality to exchange surrounding delimiters and xml-style tags with another, or simply remove them
|
||||||
|
* [vim-repeat](https://github.com/tpope/vim-repeat): A library used by vim-surround to allow its delimiter-switching functions to be repeated with the `.` command
|
||||||
* [vim-togglelist](https://github.com/milkypostman/vim-togglelist): A simple plugin for vim that allows you to bind a key to toggle the Location List and the Quickfix List
|
* [vim-togglelist](https://github.com/milkypostman/vim-togglelist): A simple plugin for vim that allows you to bind a key to toggle the Location List and the Quickfix List
|
||||||
* [vim-trailing-whitespace](https://github.com/bronson/vim-trailing-whitespace): Highlights and allows for the easy removal of trailing whitespace in documents
|
* [vim-trailing-whitespace](https://github.com/bronson/vim-trailing-whitespace): Highlights and allows for the easy removal of trailing whitespace in documents
|
||||||
* [vim-unimpaired](https://github.com/tpope/vim-unimpaired): Pairs of handy bracket mappings
|
* [vim-unimpaired](https://github.com/tpope/vim-unimpaired): Pairs of handy bracket mappings
|
||||||
* [vim-repeat](https://github.com/tpope/vim-repeat): Enable repeating supported plugin maps with "."
|
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 6eeaf0f3968ea1e6f135a5ee5aa01828f66611a5
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 84a26afce16cffa7e3322cfa80a42cddf60616eb
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit b7a0bfa3e93697ca5b61b15df633404bf8f45883
|
|
1
vim/bundle/vim-surround
Submodule
1
vim/bundle/vim-surround
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 3d188ed2113431cf8dac77be61b842acb64433d9
|
|
@ -21,7 +21,7 @@ let colors_name = "darkcloud"
|
||||||
|
|
||||||
"sets the highlighting for the given group | format: s:C('Name','Foreground','Background','Style')
|
"sets the highlighting for the given group | format: s:C('Name','Foreground','Background','Style')
|
||||||
fun! s:C(group, fg, bg, attr)
|
fun! s:C(group, fg, bg, attr)
|
||||||
if has("gui_running") || &termguicolors
|
if has("gui_running")
|
||||||
let l:term = "gui"
|
let l:term = "gui"
|
||||||
else
|
else
|
||||||
let l:term = "cterm"
|
let l:term = "cterm"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
if has("gui_running") || &termguicolors
|
if has("gui_running")
|
||||||
let g:cBlack = '#000000'
|
let g:cBlack = '#000000'
|
||||||
let g:cWhite = '#ffffff'
|
let g:cWhite = '#ffffff'
|
||||||
'
|
'
|
||||||
|
|
|
@ -166,8 +166,6 @@
|
||||||
" <Shift-Ctrl-Up> | (N) -> vim-move: move a line up one line
|
" <Shift-Ctrl-Up> | (N) -> vim-move: move a line up one line
|
||||||
" <Shift-Ctrl-Down> | (N) -> vim-move: move a line down one line
|
" <Shift-Ctrl-Down> | (N) -> vim-move: move a line down one line
|
||||||
"
|
"
|
||||||
" ]g | (N) -> next difference (vimdiff/signify)
|
|
||||||
" [g | (N) -> previous difference (vimdiff/signify)
|
|
||||||
" >> | (N) -> next difference (vimdiff/signify)
|
" >> | (N) -> next difference (vimdiff/signify)
|
||||||
" << | (N) -> previous difference (vimdiff/signify)
|
" << | (N) -> previous difference (vimdiff/signify)
|
||||||
"
|
"
|
||||||
|
@ -579,11 +577,13 @@
|
||||||
nmap <S-C-Up> <Plug>MoveLineUp
|
nmap <S-C-Up> <Plug>MoveLineUp
|
||||||
nmap <S-C-Down> <Plug>MoveLineDown
|
nmap <S-C-Down> <Plug>MoveLineDown
|
||||||
|
|
||||||
|
"map signify to ]c and [c
|
||||||
|
let g:signify_mapping_next_hunk = ']c'
|
||||||
|
let g:signify_mapping_prev_hunk = '[c'
|
||||||
|
|
||||||
"move to next/previous difference (vimdiff/signify)
|
"move to next/previous difference (vimdiff/signify)
|
||||||
nmap ]g <plug>(signify-next-hunk)
|
nmap >> ]c
|
||||||
nmap [g <plug>(signify-prev-hunk)
|
nmap << [c
|
||||||
nmap >> ]g
|
|
||||||
nmap << [g
|
|
||||||
"}
|
"}
|
||||||
|
|
||||||
"SELECTION:{
|
"SELECTION:{
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
require("ts_context_commentstring").setup()
|
require("ts_context_commentstring").setup {}
|
||||||
require("Comment").setup()
|
require("Comment").setup()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
if (vim.g.enablecompletion == 1) then
|
if (vim.g.enablecompletion == 1) then
|
||||||
local snippy = require("snippy")
|
local snippy = require("snippy")
|
||||||
local cmp = require("cmp")
|
local cmp = require"cmp"
|
||||||
|
|
||||||
local has_words_before = function()
|
local has_words_before = function()
|
||||||
unpack = unpack or table.unpack
|
unpack = unpack or table.unpack
|
||||||
|
@ -51,7 +51,6 @@ if (vim.g.enablecompletion == 1) then
|
||||||
{ name = "buffer" },
|
{ name = "buffer" },
|
||||||
{ name = "treesitter" },
|
{ name = "treesitter" },
|
||||||
{ name = "omni" },
|
{ name = "omni" },
|
||||||
{ name = "async_path" },
|
|
||||||
{ name = "tags", option = { current_buffer_only = true } },
|
{ name = "tags", option = { current_buffer_only = true } },
|
||||||
{ name = "snippy" },
|
{ name = "snippy" },
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
require("nvim-surround").setup({
|
|
||||||
move_cursor = false
|
|
||||||
})
|
|
|
@ -9,7 +9,7 @@ if (vim.g.enabletreesitter == 1) then
|
||||||
|
|
||||||
vim.opt.runtimepath:append(parser_dir)
|
vim.opt.runtimepath:append(parser_dir)
|
||||||
|
|
||||||
require("nvim-treesitter.configs").setup({
|
require'nvim-treesitter.configs'.setup {
|
||||||
ensure_installed = { "bash", "c", "cpp", "git_config", "html", "java", "javascript", "json", "lua", "php", "python", "query", "rust", "toml", "typescript", "vim", "vue" },
|
ensure_installed = { "bash", "c", "cpp", "git_config", "html", "java", "javascript", "json", "lua", "php", "python", "query", "rust", "toml", "typescript", "vim", "vue" },
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
auto_install = false,
|
auto_install = false,
|
||||||
|
@ -19,57 +19,6 @@ if (vim.g.enabletreesitter == 1) then
|
||||||
enable = true,
|
enable = true,
|
||||||
disable = {},
|
disable = {},
|
||||||
additional_vim_regex_highlighting = false,
|
additional_vim_regex_highlighting = false,
|
||||||
},
|
}
|
||||||
|
}
|
||||||
textobjects = {
|
|
||||||
select = {
|
|
||||||
enable = true,
|
|
||||||
lookahead = true, -- Automatically jump forward to textobj
|
|
||||||
|
|
||||||
keymaps = {
|
|
||||||
[ "ac" ] = { query = "@class.outer", desc = "Select outer part of a class region" },
|
|
||||||
[ "ic" ] = { query = "@class.inner", desc = "Select inner part of a class region" },
|
|
||||||
[ "af" ] = { query = "@function.outer", desc = "Select outer part of a function region" },
|
|
||||||
[ "if" ] = { query = "@function.inner", desc = "Select inner part of a function region" },
|
|
||||||
[ "as" ] = { query = "@scope", query_group = "locals", desc = "Select language scope" },
|
|
||||||
},
|
|
||||||
|
|
||||||
selection_modes = {
|
|
||||||
[ "@parameter.outer" ] = "v",
|
|
||||||
[ "@parameter.inner" ] = "v",
|
|
||||||
[ "@class.inner" ] = "V",
|
|
||||||
[ "@class.outer" ] = "V",
|
|
||||||
[ "@function.outer" ] = "V",
|
|
||||||
[ "@function.inner" ] = "V",
|
|
||||||
},
|
|
||||||
|
|
||||||
include_surrounding_whitespace = false,
|
|
||||||
},
|
|
||||||
|
|
||||||
move = {
|
|
||||||
enable = true,
|
|
||||||
set_jumps = true, -- whether to set jumps in the jumplist
|
|
||||||
|
|
||||||
goto_next_start = {
|
|
||||||
[ "]c" ] = { query = "@class.outer", desc = "Next class start" },
|
|
||||||
[ "]f" ] = { query = "@function.outer", desc = "Next function start" },
|
|
||||||
},
|
|
||||||
|
|
||||||
goto_next_end = {
|
|
||||||
[ "]C" ] = { query = "@class.outer", desc = "Next class end" },
|
|
||||||
[ "]F" ] = { query = "@function.outer", desc = "Next function end" },
|
|
||||||
},
|
|
||||||
|
|
||||||
goto_previous_start = {
|
|
||||||
[ "[c" ] = { query = "@class.outer", desc = "Prevoius class start" },
|
|
||||||
[ "[f" ] = { query = "@function.outer", desc = "Previous function start" },
|
|
||||||
},
|
|
||||||
|
|
||||||
goto_previous_end = {
|
|
||||||
[ "[C" ] = { query = "@class.outer", desc = "Previous class end" },
|
|
||||||
[ "[F" ] = { query = "@function.outer", desc = "Previous function end" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue