mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-16 23:34:42 +04:00
initial commit
This commit is contained in:
commit
3f03b7d69f
6 changed files with 140 additions and 0 deletions
16
.editorconfig
Normal file
16
.editorconfig
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
charset = utf-8
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.yaml]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.zig]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
11
home/.config/fish/config.fish
Normal file
11
home/.config/fish/config.fish
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
if status is-interactive
|
||||||
|
if test -f ~/.ghcup/env
|
||||||
|
bass source ~/.ghcup/env
|
||||||
|
end
|
||||||
|
if test -x ~/.rbenv/bin/rbenv
|
||||||
|
~/.rbenv/bin/rbenv init - fish | source
|
||||||
|
end
|
||||||
|
if command -v zoxide > /dev/null
|
||||||
|
zoxide init fish | source
|
||||||
|
end
|
||||||
|
end
|
||||||
1
home/.config/kitty/kitty.conf
Normal file
1
home/.config/kitty/kitty.conf
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
font_family firacode
|
||||||
73
init.vim
Normal file
73
init.vim
Normal file
|
|
@ -0,0 +1,73 @@
|
||||||
|
call plug#begin()
|
||||||
|
# Plug 'nvim-tree/nvim-tree.lua'
|
||||||
|
Plug 'preservim/nerdtree'
|
||||||
|
Plug 'kyazdani42/nvim-web-devicons'
|
||||||
|
Plug 'romgrk/barbar.nvim'
|
||||||
|
Plug 'lukas-reineke/indent-blankline.nvim'
|
||||||
|
Plug 'm4xshen/autoclose.nvim'
|
||||||
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
|
Plug 'spinks/vim-leader-guide'
|
||||||
|
Plug 'feline-nvim/feline.nvim'
|
||||||
|
Plug 'folke/tokyonight.nvim', { 'branch': 'main' }
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
set termguicolors
|
||||||
|
colorscheme tokyonight-night
|
||||||
|
if exists(':GuiRenderLigatures')
|
||||||
|
GuiRenderLigatures 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
set nowrap
|
||||||
|
|
||||||
|
set clipboard=unnamedplus
|
||||||
|
|
||||||
|
set nu rnu
|
||||||
|
set list
|
||||||
|
set listchars=tab:┆\ ,space:·,nbsp:␣
|
||||||
|
set tabstop=2
|
||||||
|
set shiftwidth=2
|
||||||
|
set noexpandtab
|
||||||
|
|
||||||
|
nmap <F2> :w<CR>
|
||||||
|
imap <F2> <C-O>:w<CR>
|
||||||
|
nmap <F3> :NERDTreeToggle<CR>
|
||||||
|
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||||
|
noremap <expr> <Home> (col('.') == matchend(getline('.'), '^\s*')+1 ? '0' : '^')
|
||||||
|
imap <Home> <C-o><Home>
|
||||||
|
|
||||||
|
let s:i = 1
|
||||||
|
while s:i < 10
|
||||||
|
execute printf('nmap <Leader>%i :BufferGoto %i<CR>', s:i, s:i)
|
||||||
|
execute printf('nmap <Space>%i %i<C-w><C-w>', s:i, s:i)
|
||||||
|
let s:i += 1
|
||||||
|
endwhile
|
||||||
|
|
||||||
|
nmap <C-Right> :BufferNext<CR>
|
||||||
|
nmap <C-Left> :BufferPrevious<CR>
|
||||||
|
nmap <C-q> :BufferClose<CR>
|
||||||
|
|
||||||
|
vnoremap > >gv
|
||||||
|
vnoremap < <gv
|
||||||
|
|
||||||
|
inoremap <silent><expr> <c-space> coc#refresh()
|
||||||
|
inoremap <silent><expr> <TAB>
|
||||||
|
\ coc#pum#visible() ? coc#pum#confirm() : "\<Tab>"
|
||||||
|
nmap <silent> <Space>ld <Plug>(coc-definition)
|
||||||
|
nmap <silent> <Space>lt <Plug>(coc-type-definition)
|
||||||
|
nmap <silent> <Space>li <Plug>(coc-implementation)
|
||||||
|
nmap <silent> <Space>lr <Plug>(coc-references)
|
||||||
|
|
||||||
|
nnoremap <silent> <leader> :<c-u>LeaderGuide '\'<CR>
|
||||||
|
nnoremap <silent> <Space> :<c-u>LeaderGuide '<Space>'<CR>
|
||||||
|
let g:smap = get(g:, 'smap', {})
|
||||||
|
" let g:smap['<Space>'] = get(g:smap, '<Space>', {})
|
||||||
|
" let g:smap['<Space>'].l = 'language'
|
||||||
|
let g:smap.l = {'name' : 'language'}
|
||||||
|
call leaderGuide#register_prefix_descriptions("<Space>", "g:smap")
|
||||||
|
|
||||||
|
au BufReadPost *.ets set syntax=typescript
|
||||||
|
|
||||||
|
lua require("feline").setup()
|
||||||
|
lua require("ibl").setup()
|
||||||
|
lua require("autoclose").setup()
|
||||||
|
lua require("nvim-tree").setup()
|
||||||
19
vscode/core-ext.sh
Executable file
19
vscode/core-ext.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
# generated by
|
||||||
|
# code-insiders --list-extensions | xargs -L 1 echo code --install-extension
|
||||||
|
|
||||||
|
code --install-extension alefragnani.numbered-bookmarks
|
||||||
|
code --install-extension eamodio.gitlens
|
||||||
|
code --install-extension editorconfig.editorconfig
|
||||||
|
code --install-extension haskell.haskell
|
||||||
|
code --install-extension justusadam.language-haskell
|
||||||
|
code --install-extension llvm-vs-code-extensions.vscode-clangd
|
||||||
|
code --install-extension ms-vscode.cmake-tools
|
||||||
|
code --install-extension shopify.ruby-lsp
|
||||||
|
code --install-extension streetsidesoftware.code-spell-checker
|
||||||
|
code --install-extension twxs.cmake
|
||||||
|
code --install-extension vadimcn.vscode-lldb
|
||||||
|
code --install-extension yzhang.markdown-all-in-one
|
||||||
20
vscode/settings.json
Normal file
20
vscode/settings.json
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"window.titleBarStyle": "custom",
|
||||||
|
"editor.renderWhitespace": "all",
|
||||||
|
"files.trimTrailingWhitespace": true,
|
||||||
|
"editor.renderFinalNewline": "off",
|
||||||
|
"files.insertFinalNewline": true,
|
||||||
|
"C_Cpp.autocomplete": "disabled",
|
||||||
|
"clangd.detectExtensionConflicts": false,
|
||||||
|
"editor.fontFamily": "'Fira Code', 'monospace', monospace",
|
||||||
|
"editor.fontLigatures": true,
|
||||||
|
"extensions.ignoreRecommendations": true,
|
||||||
|
"editor.accessibilitySupport": "on",
|
||||||
|
"files.trimFinalNewlines": true,
|
||||||
|
"editor.padding.top": 64,
|
||||||
|
"explorer.confirmDragAndDrop": false,
|
||||||
|
"git.openRepositoryInParentFolders": "always",
|
||||||
|
"cmake.preferredGenerators": [
|
||||||
|
"Ninja"
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue