diff options
| author | Andrew Guschin <saintruler@gmail.com> | 2020-11-30 20:11:18 +0400 |
|---|---|---|
| committer | Andrew Guschin <saintruler@gmail.com> | 2020-11-30 20:11:18 +0400 |
| commit | c0d7dc9b271faafca02ea94f86f3980d47c3ca8b (patch) | |
| tree | 34be998c8a73c38774ddc0bdf4c4cfb9de30ecd3 | |
| parent | 5a68d0d68032b33af5d433cde1d93c6f6cfb0f11 (diff) | |
Added coc plugin to vim and fixed screenshot.py
| -rw-r--r-- | .config/nvim/coc-settings.json | 23 | ||||
| -rw-r--r-- | .config/nvim/init.vim | 3 | ||||
| -rwxr-xr-x | .local/bin/scripts/screenshot.py | 6 |
3 files changed, 30 insertions, 2 deletions
diff --git a/.config/nvim/coc-settings.json b/.config/nvim/coc-settings.json new file mode 100644 index 0000000..8bacb5b --- /dev/null +++ b/.config/nvim/coc-settings.json @@ -0,0 +1,23 @@ +{ + "languageserver": { + "haskell": { + "command": "hie-wrapper", + "args": ["--lsp"], + "rootPatterns": [ + "*.cabal", + "stack.yaml", + "cabal.project", + "package.yaml" + ], + "filetypes": [ + "hs", + "lhs", + "haskell" + ], + "initializationOptions": { + "haskell": { + } + } + } + } +} diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 39458e4..e36fb18 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -10,8 +10,7 @@ Plugin 'scrooloose/nerdcommenter' Plugin 'tpope/vim-fugitive' Plugin 'vim-airline/vim-airline' Plugin 'arcticicestudio/nord-vim' - - +Plugin 'neoclide/coc.nvim', {'branch': 'release'} call vundle#end() filetype plugin indent on diff --git a/.local/bin/scripts/screenshot.py b/.local/bin/scripts/screenshot.py index 5b10ea9..e837776 100755 --- a/.local/bin/scripts/screenshot.py +++ b/.local/bin/scripts/screenshot.py @@ -2,10 +2,16 @@ import sys import re import subprocess +from subprocess import check_output as cout def shoot(arg, dst): print(f"{tool_name} {arg} | {dst}") +# def get_path(): + # with open("~/.cache/") + # p = cout(["dmenu"], input="".encode()).decode().strip() + + tool_name = "maim" default_tool = "area" |