Compare commits
No commits in common. "3c1b82dc8ed50e7498ffa22b1af2e252dc2e7196" and "1231670cd36de1c4da0da6e324c59b47ace0e6ea" have entirely different histories.
3c1b82dc8e
...
1231670cd3
@ -275,16 +275,6 @@
|
||||
"key_code": "right_option"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "non_us_backslash"
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "grave_accent_and_tilde"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -374,40 +364,6 @@
|
||||
"ignore": false,
|
||||
"manipulate_caps_lock_led": true,
|
||||
"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": [
|
||||
|
@ -84,7 +84,9 @@ call plug#begin('~/.config/nvim/plugged')
|
||||
" Markdown
|
||||
Plug 'tpope/vim-markdown'
|
||||
|
||||
" Live-preview
|
||||
" Nerd Tree
|
||||
Plug 'preservim/nerdtree'
|
||||
Plug 'ryanoasis/vim-devicons'
|
||||
Plug 'nmante/vim-latex-live-preview'
|
||||
|
||||
" 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 'Yggdroot/indentLine'
|
||||
|
||||
" GoLang
|
||||
Plug 'fatih/vim-go'
|
||||
|
||||
" Multiple cursors
|
||||
Plug 'terryma/vim-multiple-cursors'
|
||||
|
||||
@ -147,10 +152,6 @@ call plug#begin('~/.config/nvim/plugged')
|
||||
" Telescope
|
||||
Plug 'nvim-lua/plenary.nvim'
|
||||
Plug 'nvim-telescope/telescope.nvim'
|
||||
|
||||
" Tree
|
||||
Plug 'kyazdani42/nvim-web-devicons'
|
||||
Plug 'kyazdani42/nvim-tree.lua'
|
||||
call plug#end()
|
||||
|
||||
" LUA
|
||||
@ -185,7 +186,7 @@ local handlers = {
|
||||
|
||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||
-- 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
|
||||
require('lspconfig')[lsp].setup {
|
||||
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
|
||||
local luasnip = require 'luasnip'
|
||||
|
||||
@ -309,9 +283,6 @@ cmp.setup.cmdline('/', {
|
||||
}
|
||||
})
|
||||
|
||||
require'nvim-tree'.setup {
|
||||
}
|
||||
|
||||
EOF
|
||||
|
||||
" Added popout window to see diagnostic
|
||||
@ -499,9 +470,7 @@ let g:multi_cursor_quit_key = '<Esc>'
|
||||
|
||||
" Others
|
||||
nnoremap ee :!mupdf $(echo % \| sed 's/tex$/pdf/') & disown<CR><CR>
|
||||
map <C-d> :NvimTreeToggle<CR>
|
||||
nnoremap <leader>r :NvimTreeRefresh<CR>
|
||||
nnoremap <leader>n :NvimTreeFindFile<CR>
|
||||
map <C-d> :NERDTreeToggle<CR>
|
||||
nnoremap <silent> <C-t> :tabnew <CR>
|
||||
nnoremap <F11> :Goyo <CR>
|
||||
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
||||
|
@ -1,10 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
npm -g i pyright --force
|
||||
npm -g i bash-language-server --force
|
||||
npm -g i pyright bash-language-server --force
|
||||
npm -g i yaml-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 golang.org/x/tools/gopls@latest
|
||||
pip 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