diff options
| -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" |