mirror of
https://github.com/harish2704/dotFiles.git
synced 2026-09-10 07:11:09 +00:00
Added installer script
This commit is contained in:
+7
-2
@@ -42,8 +42,13 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
. /usr/share/fzf/shell/key-bindings.bash
|
if [[ -f /usr/share/fzf/shell/key-bindings.bash ]]; then
|
||||||
. $HOME/Projects/Github/dotFiles/home/.local/Apps/daily-utils/hari-autocomplete.sh
|
. /usr/share/fzf/shell/key-bindings.bash
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f $HOME/.local/Apps/daily-utils/hari-autocomplete.sh ]]; then
|
||||||
|
. $HOME/.local/Apps/daily-utils/hari-autocomplete.sh
|
||||||
|
fi
|
||||||
|
|
||||||
#export PS1='\e[1;36;40m[\u@\h\e[1;33;40m \W]\e[0;37;40m\$ '
|
#export PS1='\e[1;36;40m[\u@\h\e[1;33;40m \W]\e[0;37;40m\$ '
|
||||||
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
|
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
font:
|
font:
|
||||||
size: 13.0
|
size: 14.0
|
||||||
normal:
|
normal:
|
||||||
# family: Source Code Pro Medium
|
# family: Source Code Pro Medium
|
||||||
family: DejaVuSansMono Nerd Font Mono
|
family: CodeNewRoman Nerd Font Mono
|
||||||
|
|
||||||
key_bindings:
|
key_bindings:
|
||||||
- { key: Return, mods: Shift, chars: "\e[13;2u" }
|
- { key: Return, mods: Shift, chars: "\e[13;2u" }
|
||||||
|
|||||||
@@ -3,7 +3,4 @@
|
|||||||
./bin/bash-session
|
./bin/bash-session
|
||||||
./bin/ibus-next-engine.py
|
./bin/ibus-next-engine.py
|
||||||
./bin/csv-split-by-col.py
|
./bin/csv-split-by-col.py
|
||||||
./bin/dasel_linux_amd64
|
|
||||||
./bin/octosql
|
|
||||||
./bin/dsq
|
|
||||||
./bin/sway-wp-switch
|
./bin/sway-wp-switch
|
||||||
|
|||||||
@@ -39,6 +39,10 @@ lvim.builtin.terminal.active = true
|
|||||||
lvim.builtin.nvimtree.setup.view.side = "left"
|
lvim.builtin.nvimtree.setup.view.side = "left"
|
||||||
lvim.builtin.nvimtree.setup.renderer.icons.show.git = false
|
lvim.builtin.nvimtree.setup.renderer.icons.show.git = false
|
||||||
|
|
||||||
|
|
||||||
|
lvim.builtin.lualine.sections.lualine_b = { 'branch', '%f' }
|
||||||
|
|
||||||
|
|
||||||
-- Automatically install missing parsers when entering buffer
|
-- Automatically install missing parsers when entering buffer
|
||||||
lvim.builtin.treesitter.auto_install = true
|
lvim.builtin.treesitter.auto_install = true
|
||||||
|
|
||||||
@@ -49,6 +53,8 @@ lvim.builtin.treesitter.auto_install = true
|
|||||||
|
|
||||||
-- -- generic LSP settings <https://www.lunarvim.org/docs/languages#lsp-support>
|
-- -- generic LSP settings <https://www.lunarvim.org/docs/languages#lsp-support>
|
||||||
|
|
||||||
|
lvim.lsp.null_ls.setup.timeout_ms = 20000
|
||||||
|
|
||||||
-- --- disable automatic installation of servers
|
-- --- disable automatic installation of servers
|
||||||
-- lvim.lsp.installer.setup.automatic_installation = false
|
-- lvim.lsp.installer.setup.automatic_installation = false
|
||||||
|
|
||||||
@@ -92,6 +98,12 @@ formatters.setup {
|
|||||||
-- },
|
-- },
|
||||||
-- }
|
-- }
|
||||||
|
|
||||||
|
-- Flutter snippets enable
|
||||||
|
local luasnip = require("luasnip")
|
||||||
|
luasnip.filetype_extend("dart", { "flutter" })
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- -- Additional Plugins <https://www.lunarvim.org/docs/plugins#user-plugins>
|
-- -- Additional Plugins <https://www.lunarvim.org/docs/plugins#user-plugins>
|
||||||
-- lvim.plugins = {
|
-- lvim.plugins = {
|
||||||
-- {
|
-- {
|
||||||
@@ -122,12 +134,14 @@ command! -nargs=+ Gr :silent execute 'grep! -nr "<args>" | copen'
|
|||||||
command! -nargs=* Grc grep -nr <args>
|
command! -nargs=* Grc grep -nr <args>
|
||||||
|
|
||||||
" Add file header to current buffer. Depends on https://github.com/harish2704/file-header
|
" Add file header to current buffer. Depends on https://github.com/harish2704/file-header
|
||||||
command! Header :execute '0r!file-header %'
|
command! Header :execute "0r!file-header '%'"
|
||||||
|
|
||||||
" Open Terminal in split window
|
" Open Terminal in split window
|
||||||
command! Termw :execute '!konsole -e bash-session &'
|
command! Termw :execute '!konsole -e bash-session &'
|
||||||
command! Term :execute 'sp | term'
|
command! Term :execute 'sp | term'
|
||||||
|
|
||||||
|
command! EditSnippet :execute 'lua require("luasnip.loaders").edit_snippet_files()'
|
||||||
|
|
||||||
" Cd to current file's directory
|
" Cd to current file's directory
|
||||||
command! Cwd :execute 'cd %:p:h'
|
command! Cwd :execute 'cd %:p:h'
|
||||||
|
|
||||||
@@ -155,7 +169,7 @@ nmap <Leader><Leader>g :!git gui &<CR>
|
|||||||
nmap <M-r> :e!<CR>
|
nmap <M-r> :e!<CR>
|
||||||
|
|
||||||
" Alt-q Delete current buffer ( Close file )
|
" Alt-q Delete current buffer ( Close file )
|
||||||
nmap <M-q> :bd<CR>
|
nmap <M-q> :BufferKill<CR>
|
||||||
|
|
||||||
" <Ctrl-Shift-q> force Close buffer
|
" <Ctrl-Shift-q> force Close buffer
|
||||||
nmap <M-Q> :bd!<CR>
|
nmap <M-Q> :bd!<CR>
|
||||||
@@ -197,10 +211,12 @@ vmap <C-s> <Esc><c-s>gv
|
|||||||
imap <C-s> <Esc><c-s>
|
imap <C-s> <Esc><c-s>
|
||||||
nmap <C-PageUp> :BufferLineCyclePrev<CR>
|
nmap <C-PageUp> :BufferLineCyclePrev<CR>
|
||||||
nmap <C-PageDown> :BufferLineCycleNext<CR>
|
nmap <C-PageDown> :BufferLineCycleNext<CR>
|
||||||
|
nmap <C-S-PageUp> :BufferLineMovePrev<CR>
|
||||||
|
nmap <C-S-PageDown> :BufferLineMoveNext<CR>
|
||||||
|
|
||||||
let g:user_emmet_mode='inv'
|
let g:user_emmet_mode='inv'
|
||||||
let g:user_emmet_install_global = 0
|
let g:user_emmet_install_global = 0
|
||||||
autocmd FileType html,css,vue,jsx,php EmmetInstall
|
autocmd FileType html,css,vue,jsx,php,javascriptreact EmmetInstall
|
||||||
nmap <C-G> :execute 'Telescope live_grep default_text=' . expand('<cword>')<cr>
|
nmap <C-G> :execute 'Telescope live_grep default_text=' . expand('<cword>')<cr>
|
||||||
]])
|
]])
|
||||||
-- imap <C-E> <plug>(emmet-expand-abbr)
|
-- imap <C-E> <plug>(emmet-expand-abbr)
|
||||||
@@ -213,7 +229,7 @@ vim.keymap.set('n', '<F12>', function() require('dap').step_out() end)
|
|||||||
lvim.builtin.dap.active = true
|
lvim.builtin.dap.active = true
|
||||||
lvim.builtin.which_key.mappings["l"]["f"] = {
|
lvim.builtin.which_key.mappings["l"]["f"] = {
|
||||||
function()
|
function()
|
||||||
require("lvim.lsp.utils").format { timeout_ms = 2000 }
|
require("lvim.lsp.utils").format { timeout_ms = 20000 }
|
||||||
end,
|
end,
|
||||||
"Format",
|
"Format",
|
||||||
}
|
}
|
||||||
@@ -273,6 +289,10 @@ lvim.plugins = {
|
|||||||
build = "npm install --prefix server",
|
build = "npm install --prefix server",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"jamessan/vim-gnupg",
|
||||||
|
-- lazy = true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"kylechui/nvim-surround",
|
"kylechui/nvim-surround",
|
||||||
config = function()
|
config = function()
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
LunarVim
|
||||||
Executable
+31
@@ -0,0 +1,31 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
thisDir=$(dirname $(realpath $0) )
|
||||||
|
|
||||||
|
installUtils(){
|
||||||
|
# Install https://github.com/harish2704/installer-scripts
|
||||||
|
wget 'https://raw.githubusercontent.com/harish2704/installer-scripts/master/installer.sh' -O - | sh
|
||||||
|
}
|
||||||
|
|
||||||
|
installNerdFonts(){
|
||||||
|
cd ~/Downloads
|
||||||
|
wget -c https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/CodeNewRoman.zip
|
||||||
|
unzip CodeNewRoman.zip *.otf
|
||||||
|
mkdir -p ~/.local/share/fonts/
|
||||||
|
mv CodeNewRoman*.otf ~/.local/share/fonts/
|
||||||
|
fc-cache
|
||||||
|
}
|
||||||
|
|
||||||
|
setupLunarVim(){
|
||||||
|
cd "$thisDir"
|
||||||
|
cd ./home/.local/Apps/neovim-distros/lunarvim/
|
||||||
|
git clone https://github.com/LunarVim/LunarVim ./
|
||||||
|
cd LunarVim
|
||||||
|
rm config.lua
|
||||||
|
ln -s ../config.lua ./
|
||||||
|
}
|
||||||
|
|
||||||
|
installUtils
|
||||||
|
installNerdFonts
|
||||||
|
setupLunarVim
|
||||||
|
|
||||||
Reference in New Issue
Block a user