summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/after/plugin/lsp.lua13
-rwxr-xr-x.local/bin/dmsearch14
2 files changed, 25 insertions, 2 deletions
diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua
index fc2e7ab..410d252 100644
--- a/.config/nvim/after/plugin/lsp.lua
+++ b/.config/nvim/after/plugin/lsp.lua
@@ -73,6 +73,19 @@ require('lspconfig').clangd.setup({
},
})
+require'lspconfig'.perlnavigator.setup{
+ cmd = { "perlnavigator" },
+ settings = {
+ perlnavigator = {
+ perlPath = 'perl',
+ enableWarnings = true,
+ perltidyProfile = '',
+ perlcriticProfile = '',
+ perlcriticEnabled = true,
+ }
+ }
+}
+
require'lspconfig'.terraformls.setup{}
vim.api.nvim_create_autocmd({"BufWritePre"}, {
pattern = {"*.tf", "*.tfvars"},
diff --git a/.local/bin/dmsearch b/.local/bin/dmsearch
index f13189d..edc91fb 100755
--- a/.local/bin/dmsearch
+++ b/.local/bin/dmsearch
@@ -2,14 +2,24 @@
use strict;
use warnings;
-use constant BROWSER_PATH => '/usr/local/bin/iridium';
+use Sys::Hostname;
+
+use constant {
+ BROWSER => '/bin/firefox',
+ HOSTNAME => (split /\./, hostname())
+};
sub main
{
my $choice;
my $url;
my $pid;
+ my $prefix;
+ $prefix = '/usr';
+ if (HOSTNAME eq "mars") {
+ $prefix += '/local';
+ }
$choice = `printf "" | dmenu -i -m 0 -p 'Search:'`;
if (not $choice) {
return;
@@ -18,7 +28,7 @@ sub main
$url = 'https://duckduckgo.com/?q=' . $choice;
$pid = fork();
if (not $pid) {
- exec(BROWSER_PATH, $url);
+ exec($prefix . BROWSER, $url);
}
return;
}