aboutsummaryrefslogtreecommitdiffstats
path: root/after/plugin
diff options
context:
space:
mode:
authorAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-03-18 17:16:52 +0100
committerAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-03-18 17:16:52 +0100
commitd1b5872f8e1958b46ede7faf02f6abecc423eac9 (patch)
tree08156bae01248c14e9873ba85ad585b29e1a84c4 /after/plugin
parent86f114da90e46e588a5e0a193b6f33e49417c82e (diff)
downloadnvim-conf-d1b5872f8e1958b46ede7faf02f6abecc423eac9.tar.gz
nvim-conf-d1b5872f8e1958b46ede7faf02f6abecc423eac9.zip
Add null ls and more config
Diffstat (limited to 'after/plugin')
-rw-r--r--after/plugin/harpoon.lua3
-rw-r--r--after/plugin/null-ls.lua15
2 files changed, 18 insertions, 0 deletions
diff --git a/after/plugin/harpoon.lua b/after/plugin/harpoon.lua
index 380b26a..d80178f 100644
--- a/after/plugin/harpoon.lua
+++ b/after/plugin/harpoon.lua
@@ -7,6 +7,9 @@ harpoon.setup {}
vim.keymap.set('n', '<leader>ss', require("harpoon.ui").toggle_quick_menu, {noremap = true, silent = true, expr = false})
vim.keymap.set('n', '<leader>sa', require("harpoon.mark").add_file, {noremap = true, silent = true, expr = false})
+vim.keymap.set('n', '<leader><leader>1', function () require("harpoon.term").gotoTerminal(1) end, {noremap = true, silent = true, expr = false})
+vim.keymap.set('n', '<leader><leader>2', function () require("harpoon.term").gotoTerminal(2) end, {noremap = true, silent = true, expr = false})
+vim.keymap.set('n', '<leader><leader>3', function () require("harpoon.term").gotoTerminal(3) end, {noremap = true, silent = true, expr = false})
for i = 1, 5 do
vim.keymap.set(
diff --git a/after/plugin/null-ls.lua b/after/plugin/null-ls.lua
new file mode 100644
index 0000000..5ee463c
--- /dev/null
+++ b/after/plugin/null-ls.lua
@@ -0,0 +1,15 @@
+local ok, null_ls = pcall(require, "null-ls")
+
+if not ok then
+ return
+end
+
+null_ls.setup({
+ sources = {
+ null_ls.builtins.formatting.stylua,
+ null_ls.builtins.completion.spell,
+ null_ls.builtins.diagnostics.eslint,
+ null_ls.builtins.diagnostics.phpstan,
+ null_ls.builtins.hover.dictionary,
+ }
+})