Mapper plugin, Telescope extensions

This commit is contained in:
Norm Rasmussen
2022-11-12 07:48:04 -05:00
parent 25c4bdf348
commit 8289645293
6 changed files with 55 additions and 24 deletions

View File

@ -127,7 +127,7 @@ end
-- Use a loop to conveniently call 'setup' on multiple servers and
-- map buffer local keybindings when the language server attaches.
-- Add your language server below:
local servers = { 'bashls', 'pyright', 'clangd', 'html', 'cssls', 'tsserver' }
local servers = { 'bashls', 'pyright', 'clangd', 'html', 'cssls', 'tsserver', 'jedi-language-server' }
-- Call setup
for _, lsp in ipairs(servers) do

View File

@ -0,0 +1,12 @@
require("nvim-mapper").setup({
-- do not assign the default keymap (<leader>MM)
no_map = false,
-- where should ripgrep look for your keybinds definitions.
-- Default config search path is ~/.config/nvim/lua
search_path = os.getenv("HOME") .. "/.config/nvim/lua",
-- what should be done with the selected keybind when pressing enter.
-- Available actions:
-- * "definition" - Go to keybind definition (default)
-- * "execute" - Execute the keybind command
action_on_enter = "definition",
})

View File

@ -14,8 +14,11 @@ return require'packer'.startup(function()
-----------------------------------------------------------------
-- Easy Way to install Language Servers
use 'williamboman/mason.nvim'
use 'williamboman/mason-lspconfig.nvim'
use {
'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
'neovim/nvim-lspconfig',
}
-- Neovim Autocomplete with LSP
use {
@ -58,10 +61,9 @@ return require'packer'.startup(function()
config = function() require("tmux").setup() end
})
-- Find & Search LSP Tags
use 'liuchengxu/vista.vim'
-- Snippets
use 'rafamadriz/friendly-snippets'
-- Rename and Work with Buffer & Tabs
@ -79,7 +81,15 @@ return require'packer'.startup(function()
}
end
}
-- Manage all your Keymaps!
use {
"lazytanuki/nvim-mapper",
config = function() require("nvim-mapper").setup{} end,
before = "telescope.nvim"
}
-- Close your brackets easily
use {
'windwp/nvim-autopairs',
config = function()

View File

@ -29,10 +29,8 @@ local telescope_installer = require('telescope').setup({
hijack_netrw = true,
mappings = {
["i"] = {
["<C-h>"] = fb_actions.goto_home_dir
},
["n"] = {
["<C-c>"] = fb_actions.create
},
},