Mapper plugin, Telescope extensions
This commit is contained in:
1
init.lua
1
init.lua
@ -16,3 +16,4 @@ require('plugins/snippets')
|
|||||||
require('plugins/neoscroll')
|
require('plugins/neoscroll')
|
||||||
require('plugins/marks')
|
require('plugins/marks')
|
||||||
require('plugins/null-ls')
|
require('plugins/null-ls')
|
||||||
|
require('plugins/nvim-mapper')
|
||||||
|
|||||||
@ -127,7 +127,7 @@ end
|
|||||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||||
-- map buffer local keybindings when the language server attaches.
|
-- map buffer local keybindings when the language server attaches.
|
||||||
-- Add your language server below:
|
-- 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
|
-- Call setup
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
|
|||||||
12
lua/plugins/nvim-mapper.lua
Normal file
12
lua/plugins/nvim-mapper.lua
Normal 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",
|
||||||
|
})
|
||||||
@ -14,8 +14,11 @@ return require'packer'.startup(function()
|
|||||||
-----------------------------------------------------------------
|
-----------------------------------------------------------------
|
||||||
|
|
||||||
-- Easy Way to install Language Servers
|
-- Easy Way to install Language Servers
|
||||||
use 'williamboman/mason.nvim'
|
use {
|
||||||
use 'williamboman/mason-lspconfig.nvim'
|
'williamboman/mason.nvim',
|
||||||
|
'williamboman/mason-lspconfig.nvim',
|
||||||
|
'neovim/nvim-lspconfig',
|
||||||
|
}
|
||||||
|
|
||||||
-- Neovim Autocomplete with LSP
|
-- Neovim Autocomplete with LSP
|
||||||
use {
|
use {
|
||||||
@ -58,10 +61,9 @@ return require'packer'.startup(function()
|
|||||||
config = function() require("tmux").setup() end
|
config = function() require("tmux").setup() end
|
||||||
})
|
})
|
||||||
-- Find & Search LSP Tags
|
-- Find & Search LSP Tags
|
||||||
|
|
||||||
use 'liuchengxu/vista.vim'
|
use 'liuchengxu/vista.vim'
|
||||||
|
|
||||||
-- Snippets
|
-- Snippets
|
||||||
|
|
||||||
use 'rafamadriz/friendly-snippets'
|
use 'rafamadriz/friendly-snippets'
|
||||||
|
|
||||||
-- Rename and Work with Buffer & Tabs
|
-- Rename and Work with Buffer & Tabs
|
||||||
@ -79,7 +81,15 @@ return require'packer'.startup(function()
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Manage all your Keymaps!
|
||||||
|
use {
|
||||||
|
"lazytanuki/nvim-mapper",
|
||||||
|
config = function() require("nvim-mapper").setup{} end,
|
||||||
|
before = "telescope.nvim"
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Close your brackets easily
|
||||||
use {
|
use {
|
||||||
'windwp/nvim-autopairs',
|
'windwp/nvim-autopairs',
|
||||||
config = function()
|
config = function()
|
||||||
|
|||||||
@ -29,10 +29,8 @@ local telescope_installer = require('telescope').setup({
|
|||||||
hijack_netrw = true,
|
hijack_netrw = true,
|
||||||
mappings = {
|
mappings = {
|
||||||
["i"] = {
|
["i"] = {
|
||||||
["<C-h>"] = fb_actions.goto_home_dir
|
|
||||||
},
|
},
|
||||||
["n"] = {
|
["n"] = {
|
||||||
["<C-c>"] = fb_actions.create
|
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -227,6 +227,12 @@ _G.packer_plugins = {
|
|||||||
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
||||||
url = "https://github.com/neovim/nvim-lspconfig"
|
url = "https://github.com/neovim/nvim-lspconfig"
|
||||||
},
|
},
|
||||||
|
["nvim-mapper"] = {
|
||||||
|
config = { "\27LJ\2\n=\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\16nvim-mapper\frequire\0" },
|
||||||
|
loaded = true,
|
||||||
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/nvim-mapper",
|
||||||
|
url = "https://github.com/lazytanuki/nvim-mapper"
|
||||||
|
},
|
||||||
["nvim-notify"] = {
|
["nvim-notify"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/nvim-notify",
|
path = "/Users/normrasmussen/.local/share/nvim/site/pack/packer/start/nvim-notify",
|
||||||
@ -329,34 +335,38 @@ _G.packer_plugins = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
time([[Defining packer_plugins]], false)
|
time([[Defining packer_plugins]], false)
|
||||||
-- Config for: mkdnflow.nvim
|
|
||||||
time([[Config for mkdnflow.nvim]], true)
|
|
||||||
try_loadstring("\27LJ\2\n<EFBFBD>\2\0\0\6\0\23\0\0316\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\21\0005\3\5\0005\4\4\0005\5\3\0>\5\1\4=\4\6\0035\4\b\0005\5\a\0>\5\1\4=\4\t\0035\4\v\0005\5\n\0>\5\1\4=\4\f\0035\4\14\0005\5\r\0>\5\1\4=\4\15\0035\4\17\0005\5\16\0>\5\1\4=\4\18\0035\4\19\0=\4\20\3=\3\22\2B\0\2\1K\0\1\0\rmappings\1\0\0\19MkdnFollowLink\1\3\0\0\6n\14<leader>p\rMkdnSTab\1\3\0\0\0\f<S-Tab>\1\2\0\0\6i\fMkdnTab\1\3\0\0\0\n<Tab>\1\2\0\0\6i\14MkdnEnter\1\3\0\0\0\t<CR>\1\2\0\0\6n\20MkdnNewListItem\1\3\0\0\0\t<CR>\1\2\0\0\6i\19MkdnToggleToDo\1\0\1\22MkdnTableNextCell\1\1\3\0\0\0\14<C-Space>\1\3\0\0\6i\6n\nsetup\rmkdnflow\frequire\0", "config", "mkdnflow.nvim")
|
|
||||||
time([[Config for mkdnflow.nvim]], false)
|
|
||||||
-- Config for: trouble.nvim
|
|
||||||
time([[Config for trouble.nvim]], true)
|
|
||||||
try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\ftrouble\frequire\0", "config", "trouble.nvim")
|
|
||||||
time([[Config for trouble.nvim]], false)
|
|
||||||
-- Config for: todo-comments.nvim
|
-- Config for: todo-comments.nvim
|
||||||
time([[Config for todo-comments.nvim]], true)
|
time([[Config for todo-comments.nvim]], true)
|
||||||
try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\18todo-comments\frequire\0", "config", "todo-comments.nvim")
|
try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\18todo-comments\frequire\0", "config", "todo-comments.nvim")
|
||||||
time([[Config for todo-comments.nvim]], false)
|
time([[Config for todo-comments.nvim]], false)
|
||||||
-- Config for: mind.nvim
|
|
||||||
time([[Config for mind.nvim]], true)
|
|
||||||
try_loadstring("\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\tmind\frequire\0", "config", "mind.nvim")
|
|
||||||
time([[Config for mind.nvim]], false)
|
|
||||||
-- Config for: telescope.nvim
|
|
||||||
time([[Config for telescope.nvim]], true)
|
|
||||||
try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14telescope\frequire\0", "config", "telescope.nvim")
|
|
||||||
time([[Config for telescope.nvim]], false)
|
|
||||||
-- Config for: tmux.nvim
|
-- Config for: tmux.nvim
|
||||||
time([[Config for tmux.nvim]], true)
|
time([[Config for tmux.nvim]], true)
|
||||||
try_loadstring("\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\ttmux\frequire\0", "config", "tmux.nvim")
|
try_loadstring("\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\ttmux\frequire\0", "config", "tmux.nvim")
|
||||||
time([[Config for tmux.nvim]], false)
|
time([[Config for tmux.nvim]], false)
|
||||||
|
-- Config for: nvim-mapper
|
||||||
|
time([[Config for nvim-mapper]], true)
|
||||||
|
try_loadstring("\27LJ\2\n=\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\16nvim-mapper\frequire\0", "config", "nvim-mapper")
|
||||||
|
time([[Config for nvim-mapper]], false)
|
||||||
|
-- Config for: mkdnflow.nvim
|
||||||
|
time([[Config for mkdnflow.nvim]], true)
|
||||||
|
try_loadstring("\27LJ\2\n<EFBFBD>\2\0\0\6\0\23\0\0316\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\21\0005\3\5\0005\4\4\0005\5\3\0>\5\1\4=\4\6\0035\4\b\0005\5\a\0>\5\1\4=\4\t\0035\4\v\0005\5\n\0>\5\1\4=\4\f\0035\4\14\0005\5\r\0>\5\1\4=\4\15\0035\4\17\0005\5\16\0>\5\1\4=\4\18\0035\4\19\0=\4\20\3=\3\22\2B\0\2\1K\0\1\0\rmappings\1\0\0\19MkdnFollowLink\1\3\0\0\6n\14<leader>p\rMkdnSTab\1\3\0\0\0\f<S-Tab>\1\2\0\0\6i\fMkdnTab\1\3\0\0\0\n<Tab>\1\2\0\0\6i\14MkdnEnter\1\3\0\0\0\t<CR>\1\2\0\0\6n\20MkdnNewListItem\1\3\0\0\0\t<CR>\1\2\0\0\6i\19MkdnToggleToDo\1\0\1\22MkdnTableNextCell\1\1\3\0\0\0\14<C-Space>\1\3\0\0\6i\6n\nsetup\rmkdnflow\frequire\0", "config", "mkdnflow.nvim")
|
||||||
|
time([[Config for mkdnflow.nvim]], false)
|
||||||
|
-- Config for: telescope.nvim
|
||||||
|
time([[Config for telescope.nvim]], true)
|
||||||
|
try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14telescope\frequire\0", "config", "telescope.nvim")
|
||||||
|
time([[Config for telescope.nvim]], false)
|
||||||
|
-- Config for: trouble.nvim
|
||||||
|
time([[Config for trouble.nvim]], true)
|
||||||
|
try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\ftrouble\frequire\0", "config", "trouble.nvim")
|
||||||
|
time([[Config for trouble.nvim]], false)
|
||||||
-- Config for: nvim-autopairs
|
-- Config for: nvim-autopairs
|
||||||
time([[Config for nvim-autopairs]], true)
|
time([[Config for nvim-autopairs]], true)
|
||||||
try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
|
try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
|
||||||
time([[Config for nvim-autopairs]], false)
|
time([[Config for nvim-autopairs]], false)
|
||||||
|
-- Config for: mind.nvim
|
||||||
|
time([[Config for mind.nvim]], true)
|
||||||
|
try_loadstring("\27LJ\2\n2\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\tmind\frequire\0", "config", "mind.nvim")
|
||||||
|
time([[Config for mind.nvim]], false)
|
||||||
|
|
||||||
_G._packer.inside_compile = false
|
_G._packer.inside_compile = false
|
||||||
if _G._packer.needs_bufread == true then
|
if _G._packer.needs_bufread == true then
|
||||||
|
|||||||
Reference in New Issue
Block a user