diff --git a/after/plugin/dap/dap-gdscript.lua b/after/plugin/dap/dap-gdscript.lua new file mode 100644 index 0000000..ef9e0e1 --- /dev/null +++ b/after/plugin/dap/dap-gdscript.lua @@ -0,0 +1,17 @@ +local dap = require("dap") + +dap.adapters.godot = { + type = "server", + host = '127.0.0.1', + port = 6006, +} + +dap.configurations.gdscript = { + { + type = "godot", + request = "launch", + name = "Launch scene", + project = "${workspaceFolder}", + launch_scene = true, + } +} diff --git a/after/plugin/lsp/call-hierarchy.lua b/after/plugin/lsp/call-hierarchy.lua new file mode 100644 index 0000000..c513a70 --- /dev/null +++ b/after/plugin/lsp/call-hierarchy.lua @@ -0,0 +1,8 @@ +-- configure the litee.nvim library +require('litee.lib').setup({}) +-- configure litee-calltree.nvim +require('litee.calltree').setup({ + on_open = "panel", +}) + +vim.keymap.set("n", "ci", ":lua vim.lsp.buf.incoming_calls()") diff --git a/after/plugin/lsp/lsp-gdscript.lua b/after/plugin/lsp/lsp-gdscript.lua new file mode 100644 index 0000000..5d44256 --- /dev/null +++ b/after/plugin/lsp/lsp-gdscript.lua @@ -0,0 +1 @@ +require("lspconfig").gdscript.setup{} diff --git a/after/plugin/lsp/lsp-lua.lua b/after/plugin/lsp/lsp-lua.lua new file mode 100644 index 0000000..bdeafa7 --- /dev/null +++ b/after/plugin/lsp/lsp-lua.lua @@ -0,0 +1,3 @@ +-- lua lsp is not installed by packer but is actually a package installed with pacman +require('lspconfig').lua_ls.setup { +} diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index 6a58dab..67cdaa4 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -1,2 +1,5 @@ local builtin = require('telescope.builtin') vim.keymap.set('n', 'ff', builtin.find_files, {}) +vim.keymap.set('n', 'fs', function() + builtin.grep_string({ search = vim.fn.input("Find: ") }); +end) diff --git a/lua/myworkflow/packer.lua b/lua/myworkflow/packer.lua index 0d93fa2..de78a47 100644 --- a/lua/myworkflow/packer.lua +++ b/lua/myworkflow/packer.lua @@ -18,6 +18,9 @@ return require('packer').startup(function(use) use 'simrat39/rust-tools.nvim' use 'akinsho/flutter-tools.nvim' + -- Call hierarchy + use {'ldelossa/litee-calltree.nvim', requires = 'ldelossa/litee.nvim'} + -- debugging use 'mfussenegger/nvim-dap' use 'leoluz/nvim-dap-go' diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua index ab03770..8a7a917 100644 --- a/plugin/packer_compiled.lua +++ b/plugin/packer_compiled.lua @@ -49,8 +49,8 @@ local function save_profiles(threshold) end time([[Luarocks path setup]], true) -local package_path_str = "/home/m/.cache/nvim/packer_hererocks/2.1.1692616192/share/lua/5.1/?.lua;/home/m/.cache/nvim/packer_hererocks/2.1.1692616192/share/lua/5.1/?/init.lua;/home/m/.cache/nvim/packer_hererocks/2.1.1692616192/lib/luarocks/rocks-5.1/?.lua;/home/m/.cache/nvim/packer_hererocks/2.1.1692616192/lib/luarocks/rocks-5.1/?/init.lua" -local install_cpath_pattern = "/home/m/.cache/nvim/packer_hererocks/2.1.1692616192/lib/lua/5.1/?.so" +local package_path_str = "/home/m/.cache/nvim/packer_hererocks/2.1.1694285958/share/lua/5.1/?.lua;/home/m/.cache/nvim/packer_hererocks/2.1.1694285958/share/lua/5.1/?/init.lua;/home/m/.cache/nvim/packer_hererocks/2.1.1694285958/lib/luarocks/rocks-5.1/?.lua;/home/m/.cache/nvim/packer_hererocks/2.1.1694285958/lib/luarocks/rocks-5.1/?/init.lua" +local install_cpath_pattern = "/home/m/.cache/nvim/packer_hererocks/2.1.1694285958/lib/lua/5.1/?.so" if not string.find(package.path, package_path_str, 1, true) then package.path = package.path .. ';' .. package_path_str end @@ -109,6 +109,16 @@ _G.packer_plugins = { path = "/home/m/.local/share/nvim/site/pack/packer/start/gruvbox.nvim", url = "https://github.com/ellisonleao/gruvbox.nvim" }, + ["litee-calltree.nvim"] = { + loaded = true, + path = "/home/m/.local/share/nvim/site/pack/packer/start/litee-calltree.nvim", + url = "https://github.com/ldelossa/litee-calltree.nvim" + }, + ["litee.nvim"] = { + loaded = true, + path = "/home/m/.local/share/nvim/site/pack/packer/start/litee.nvim", + url = "https://github.com/ldelossa/litee.nvim" + }, ["nvim-cmp"] = { loaded = true, path = "/home/m/.local/share/nvim/site/pack/packer/start/nvim-cmp",