Compare commits
No commits in common. "3c1b82dc8ed50e7498ffa22b1af2e252dc2e7196" and "1231670cd36de1c4da0da6e324c59b47ace0e6ea" have entirely different histories.
3c1b82dc8e
...
1231670cd3
@ -275,16 +275,6 @@
|
|||||||
"key_code": "right_option"
|
"key_code": "right_option"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": {
|
|
||||||
"key_code": "non_us_backslash"
|
|
||||||
},
|
|
||||||
"to": [
|
|
||||||
{
|
|
||||||
"key_code": "grave_accent_and_tilde"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -374,40 +364,6 @@
|
|||||||
"ignore": false,
|
"ignore": false,
|
||||||
"manipulate_caps_lock_led": true,
|
"manipulate_caps_lock_led": true,
|
||||||
"simple_modifications": []
|
"simple_modifications": []
|
||||||
},
|
|
||||||
{
|
|
||||||
"disable_built_in_keyboard_if_exists": false,
|
|
||||||
"fn_function_keys": [],
|
|
||||||
"identifiers": {
|
|
||||||
"is_keyboard": true,
|
|
||||||
"is_pointing_device": false,
|
|
||||||
"product_id": 30264,
|
|
||||||
"vendor_id": 3141
|
|
||||||
},
|
|
||||||
"ignore": false,
|
|
||||||
"manipulate_caps_lock_led": true,
|
|
||||||
"simple_modifications": [
|
|
||||||
{
|
|
||||||
"from": {
|
|
||||||
"key_code": "left_command"
|
|
||||||
},
|
|
||||||
"to": [
|
|
||||||
{
|
|
||||||
"key_code": "left_option"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"from": {
|
|
||||||
"key_code": "left_option"
|
|
||||||
},
|
|
||||||
"to": [
|
|
||||||
{
|
|
||||||
"key_code": "right_command"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"fn_function_keys": [
|
"fn_function_keys": [
|
||||||
|
@ -84,7 +84,9 @@ call plug#begin('~/.config/nvim/plugged')
|
|||||||
" Markdown
|
" Markdown
|
||||||
Plug 'tpope/vim-markdown'
|
Plug 'tpope/vim-markdown'
|
||||||
|
|
||||||
" Live-preview
|
" Nerd Tree
|
||||||
|
Plug 'preservim/nerdtree'
|
||||||
|
Plug 'ryanoasis/vim-devicons'
|
||||||
Plug 'nmante/vim-latex-live-preview'
|
Plug 'nmante/vim-latex-live-preview'
|
||||||
|
|
||||||
" Goyo plugin for writing mutt mail
|
" Goyo plugin for writing mutt mail
|
||||||
@ -111,6 +113,9 @@ call plug#begin('~/.config/nvim/plugged')
|
|||||||
Plug 'pearofducks/ansible-vim', { 'do': './UltiSnips/generate.sh' }
|
Plug 'pearofducks/ansible-vim', { 'do': './UltiSnips/generate.sh' }
|
||||||
Plug 'Yggdroot/indentLine'
|
Plug 'Yggdroot/indentLine'
|
||||||
|
|
||||||
|
" GoLang
|
||||||
|
Plug 'fatih/vim-go'
|
||||||
|
|
||||||
" Multiple cursors
|
" Multiple cursors
|
||||||
Plug 'terryma/vim-multiple-cursors'
|
Plug 'terryma/vim-multiple-cursors'
|
||||||
|
|
||||||
@ -147,10 +152,6 @@ call plug#begin('~/.config/nvim/plugged')
|
|||||||
" Telescope
|
" Telescope
|
||||||
Plug 'nvim-lua/plenary.nvim'
|
Plug 'nvim-lua/plenary.nvim'
|
||||||
Plug 'nvim-telescope/telescope.nvim'
|
Plug 'nvim-telescope/telescope.nvim'
|
||||||
|
|
||||||
" Tree
|
|
||||||
Plug 'kyazdani42/nvim-web-devicons'
|
|
||||||
Plug 'kyazdani42/nvim-tree.lua'
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" LUA
|
" LUA
|
||||||
@ -185,7 +186,7 @@ local handlers = {
|
|||||||
|
|
||||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||||
-- map buffer local keybindings when the language server attaches
|
-- map buffer local keybindings when the language server attaches
|
||||||
local servers = { 'pyright', 'bashls', 'ansiblels', 'gopls' }
|
local servers = { 'pyright', 'bashls', 'ansiblels' }
|
||||||
for _, lsp in pairs(servers) do
|
for _, lsp in pairs(servers) do
|
||||||
require('lspconfig')[lsp].setup {
|
require('lspconfig')[lsp].setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
@ -215,33 +216,6 @@ require'lspconfig'.yamlls.setup{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Setup GoLang
|
|
||||||
require'lspconfig'.gopls.setup {
|
|
||||||
cmd = {"gopls", "serve"},
|
|
||||||
filetypes = {"go", "gomod"},
|
|
||||||
on_attach = on_attach,
|
|
||||||
handlers=handlers,
|
|
||||||
capabilities = capabilities,
|
|
||||||
settings = {
|
|
||||||
gopls = {
|
|
||||||
analyses = {
|
|
||||||
unusedparams = true,
|
|
||||||
},
|
|
||||||
staticcheck = true,
|
|
||||||
linksInHover = false,
|
|
||||||
codelenses = {
|
|
||||||
generate = true,
|
|
||||||
gc_details = true,
|
|
||||||
regenerate_cgo = true,
|
|
||||||
tidy = true,
|
|
||||||
upgrade_depdendency = true,
|
|
||||||
vendor = true,
|
|
||||||
},
|
|
||||||
usePlaceholders = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- luasnip setup
|
-- luasnip setup
|
||||||
local luasnip = require 'luasnip'
|
local luasnip = require 'luasnip'
|
||||||
|
|
||||||
@ -309,9 +283,6 @@ cmp.setup.cmdline('/', {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
require'nvim-tree'.setup {
|
|
||||||
}
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
" Added popout window to see diagnostic
|
" Added popout window to see diagnostic
|
||||||
@ -499,9 +470,7 @@ let g:multi_cursor_quit_key = '<Esc>'
|
|||||||
|
|
||||||
" Others
|
" Others
|
||||||
nnoremap ee :!mupdf $(echo % \| sed 's/tex$/pdf/') & disown<CR><CR>
|
nnoremap ee :!mupdf $(echo % \| sed 's/tex$/pdf/') & disown<CR><CR>
|
||||||
map <C-d> :NvimTreeToggle<CR>
|
map <C-d> :NERDTreeToggle<CR>
|
||||||
nnoremap <leader>r :NvimTreeRefresh<CR>
|
|
||||||
nnoremap <leader>n :NvimTreeFindFile<CR>
|
|
||||||
nnoremap <silent> <C-t> :tabnew <CR>
|
nnoremap <silent> <C-t> :tabnew <CR>
|
||||||
nnoremap <F11> :Goyo <CR>
|
nnoremap <F11> :Goyo <CR>
|
||||||
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
npm -g i pyright --force
|
npm -g i pyright bash-language-server --force
|
||||||
npm -g i bash-language-server --force
|
|
||||||
npm -g i yaml-language-server --force
|
npm -g i yaml-language-server --force
|
||||||
npm -g i @ansible/ansible-language-server --force
|
npm -g i @ansible/ansible-language-server --force
|
||||||
GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt@latest
|
GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt@latest
|
||||||
GO111MODULE=on go install golang.org/x/tools/gopls@latest
|
|
||||||
pip install black
|
pip install black
|
||||||
pip3 install black
|
pip3 install black
|
||||||
|
10
.local/bin/jupyter
Executable file
10
.local/bin/jupyter
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
docker stop "$(docker ps --all | grep -i jupyter | awk '{print $1}')" > /dev/null
|
||||||
|
docker rm "$(docker ps --all | grep -i jupyter| awk '{print $1}')" > /dev/null
|
||||||
|
docker pull jupyter/scipy-notebook:latest
|
||||||
|
docker run \
|
||||||
|
--rm \
|
||||||
|
-p 8888:8888 \
|
||||||
|
-e JUPYTER_ENABLE_LAB=yes \
|
||||||
|
-v "$HOME/Documents/Collage/Semestr2/MG":/home/jovyan/ \
|
||||||
|
jupyter/scipy-notebook
|
@ -1,10 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
docker stop "$(docker ps --all | grep -i jupyter | awk '{print $1}')" >/dev/null
|
|
||||||
docker rm "$(docker ps --all | grep -i jupyter | awk '{print $1}')" >/dev/null
|
|
||||||
docker pull jupyter/scipy-notebook:latest
|
|
||||||
docker run \
|
|
||||||
--rm \
|
|
||||||
-p 8888:8888 \
|
|
||||||
-e JUPYTER_ENABLE_LAB=yes \
|
|
||||||
-v "$HOME/MEGA/Documents/Collage/":/home/jovyan/ \
|
|
||||||
jupyter/scipy-notebook
|
|
Loading…
Reference in New Issue
Block a user