Add rtags helper to find ranger tags
This commit is contained in:
parent
7915594904
commit
2e2189bb2a
2 changed files with 19 additions and 6 deletions
9
bin/rtags
Executable file
9
bin/rtags
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -n "$1" ]
|
||||
then mask="^$1:"
|
||||
else mask='^\/'
|
||||
fi
|
||||
|
||||
pwd=$(pwd | sed -e 's/\//\\\//g')
|
||||
cat $HOME/.config/ranger/tagged | sed -e "/$mask/!d" -e "s/$mask//" -e "/^$pwd/!d"
|
|
@ -1,4 +1,5 @@
|
|||
local config = require 'lspconfig'
|
||||
local util = require 'lspconfig.util'
|
||||
|
||||
local ensure_capabilities
|
||||
xpcall(function()
|
||||
|
@ -23,6 +24,15 @@ end})
|
|||
-- init_options -> during server initialization
|
||||
-- settings -> sent as config change event right after initialization
|
||||
local configs = setmetatable({
|
||||
ruby_lsp = default {
|
||||
init_options = {
|
||||
formatter = "standard";
|
||||
linters = { "standard" };
|
||||
}
|
||||
},
|
||||
standardrb = default {
|
||||
root_dir = util.root_pattern("Gemfile", ".git", ".standard.yml");
|
||||
},
|
||||
yamlls = default {
|
||||
settings = {
|
||||
yaml = {
|
||||
|
@ -30,12 +40,6 @@ local configs = setmetatable({
|
|||
}
|
||||
}
|
||||
},
|
||||
ruby_lsp = default {
|
||||
init_options = {
|
||||
formatter = "standard";
|
||||
linters = { "standard" };
|
||||
}
|
||||
},
|
||||
}, {__index = function() return default end})
|
||||
|
||||
for _, language in ipairs {
|
||||
|
|
Loading…
Reference in a new issue