some changes
Add lua-ls Add lsp for gdscript. Add plugin for call hierarchy
This commit is contained in:
parent
6737dcf50a
commit
b629837cec
17
after/plugin/dap/dap-gdscript.lua
Normal file
17
after/plugin/dap/dap-gdscript.lua
Normal file
@ -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,
|
||||||
|
}
|
||||||
|
}
|
8
after/plugin/lsp/call-hierarchy.lua
Normal file
8
after/plugin/lsp/call-hierarchy.lua
Normal file
@ -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", "<leader>ci", ":lua vim.lsp.buf.incoming_calls()<CR>")
|
1
after/plugin/lsp/lsp-gdscript.lua
Normal file
1
after/plugin/lsp/lsp-gdscript.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
require("lspconfig").gdscript.setup{}
|
3
after/plugin/lsp/lsp-lua.lua
Normal file
3
after/plugin/lsp/lsp-lua.lua
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
-- lua lsp is not installed by packer but is actually a package installed with pacman
|
||||||
|
require('lspconfig').lua_ls.setup {
|
||||||
|
}
|
@ -1,2 +1,5 @@
|
|||||||
local builtin = require('telescope.builtin')
|
local builtin = require('telescope.builtin')
|
||||||
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
|
||||||
|
vim.keymap.set('n', '<leader>fs', function()
|
||||||
|
builtin.grep_string({ search = vim.fn.input("Find: ") });
|
||||||
|
end)
|
||||||
|
@ -18,6 +18,9 @@ return require('packer').startup(function(use)
|
|||||||
use 'simrat39/rust-tools.nvim'
|
use 'simrat39/rust-tools.nvim'
|
||||||
use 'akinsho/flutter-tools.nvim'
|
use 'akinsho/flutter-tools.nvim'
|
||||||
|
|
||||||
|
-- Call hierarchy
|
||||||
|
use {'ldelossa/litee-calltree.nvim', requires = 'ldelossa/litee.nvim'}
|
||||||
|
|
||||||
-- debugging
|
-- debugging
|
||||||
use 'mfussenegger/nvim-dap'
|
use 'mfussenegger/nvim-dap'
|
||||||
use 'leoluz/nvim-dap-go'
|
use 'leoluz/nvim-dap-go'
|
||||||
|
@ -49,8 +49,8 @@ local function save_profiles(threshold)
|
|||||||
end
|
end
|
||||||
|
|
||||||
time([[Luarocks path setup]], true)
|
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 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.1692616192/lib/lua/5.1/?.so"
|
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
|
if not string.find(package.path, package_path_str, 1, true) then
|
||||||
package.path = package.path .. ';' .. package_path_str
|
package.path = package.path .. ';' .. package_path_str
|
||||||
end
|
end
|
||||||
@ -109,6 +109,16 @@ _G.packer_plugins = {
|
|||||||
path = "/home/m/.local/share/nvim/site/pack/packer/start/gruvbox.nvim",
|
path = "/home/m/.local/share/nvim/site/pack/packer/start/gruvbox.nvim",
|
||||||
url = "https://github.com/ellisonleao/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"] = {
|
["nvim-cmp"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/m/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
path = "/home/m/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
||||||
|
Loading…
Reference in New Issue
Block a user