From e96481e1f2fbbb876cfeb0246987288bb1e2f5f3 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Thu, 16 May 2024 22:27:41 -0400 Subject: [PATCH] Fix jump to command and add fortls --- init.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 67cc8f0..b7a0d9e 100644 --- a/init.lua +++ b/init.lua @@ -87,6 +87,10 @@ vim.keymap.set("n", "", "", { desc = "Move focus to the left wind vim.keymap.set("n", "", "", { desc = "Move focus to the right window" }) vim.keymap.set("n", "", "", { desc = "Move focus to the lower window" }) vim.keymap.set("n", "", "", { desc = "Move focus to the upper window" }) +-- Jump to the definition of the word under your cursor. +-- This is where a variable was first declared, or where a function is defined, etc. +-- To jump back, press . +vim.keymap.set("n", "gd", vim.lsp.buf.definition, { desc = "" }) -- [[ Basic Autocommands ]] -- Go back to last edited line when reopening file vim.api.nvim_create_autocmd("BufRead", { @@ -261,6 +265,7 @@ require("lazy").setup({ "vigoux/ltex-ls.nvim", "tpope/vim-markdown", "christoomey/vim-tmux-navigator", + "skywind3000/asyncrun.vim", -- NOTE: Plugins can specify dependencies. -- -- The dependencies are proper plugin specifications as well - anything @@ -348,11 +353,6 @@ require("lazy").setup({ vim.keymap.set("n", keys, func, { buffer = event.buf, desc = "LSP: " .. desc }) end - -- Jump to the definition of the word under your cursor. - -- This is where a variable was first declared, or where a function is defined, etc. - -- To jump back, press . - map("gd", require("telescope.builtin").lsp_definitions, "[G]oto [D]efinition") - -- Find references for the word under your cursor. map("gr", require("telescope.builtin").lsp_references, "[G]oto [R]eferences") @@ -450,6 +450,7 @@ require("lazy").setup({ }, }, pyright = {}, + fortls = {}, bashls = { dependencies = "shellcheck" }, rust_analyzer = { settings = {