feat(nvim): move folder
This commit is contained in:
11
nvim/plugin/harpoon.lua
Normal file
11
nvim/plugin/harpoon.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
local harpoon = require("harpoon")
|
||||
harpoon:setup()
|
||||
--
|
||||
-- vim.keymap.set("n", "<leader>q", function() harpoon:list().append() end)
|
||||
-- vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
||||
--
|
||||
-- vim.keymap.set("n", "<M-q>", function() harpoon:list():select(1) end)
|
||||
-- vim.keymap.set("n", "<M-w>", function() harpoon:list():select(2) end)
|
||||
-- vim.keymap.set("n", "<M-e>", function() harpoon:list():select(3) end)
|
||||
-- vim.keymap.set("n", "<M-r>", function() harpoon:list():select(4) end)
|
||||
-- vim.keymap.set("n", "<M-t>", function() harpoon:list():select(5) end)
|
||||
52
nvim/plugin/minifiles.lua
Normal file
52
nvim/plugin/minifiles.lua
Normal file
@@ -0,0 +1,52 @@
|
||||
require('mini.files').setup({
|
||||
-- Customization of shown content
|
||||
content = {
|
||||
-- Predicate for which file system entries to show
|
||||
filter = nil,
|
||||
-- What prefix to show to the left of file system entry
|
||||
prefix = nil,
|
||||
-- In which order to show file system entries
|
||||
sort = nil,
|
||||
},
|
||||
|
||||
-- Module mappings created only inside explorer.
|
||||
-- Use `''` (empty string) to not create one.
|
||||
mappings = {
|
||||
close = 'q',
|
||||
go_in = 'l',
|
||||
go_in_plus = 'L',
|
||||
go_out = 'h',
|
||||
go_out_plus = 'H',
|
||||
reset = '<BS>',
|
||||
reveal_cwd = '@',
|
||||
show_help = 'g?',
|
||||
synchronize = '=',
|
||||
trim_left = '<',
|
||||
trim_right = '>',
|
||||
},
|
||||
|
||||
-- General options
|
||||
options = {
|
||||
-- Whether to delete permanently or move into module-specific trash
|
||||
permanent_delete = true,
|
||||
-- Whether to use for editing directories
|
||||
use_as_default_explorer = true,
|
||||
},
|
||||
|
||||
-- Customization of explorer windows
|
||||
windows = {
|
||||
-- Maximum number of windows to show side by side
|
||||
max_number = math.huge,
|
||||
-- Whether to show preview of file/directory under cursor
|
||||
preview = false,
|
||||
-- Width of focused window
|
||||
width_focus = 50,
|
||||
-- Width of non-focused window
|
||||
width_nofocus = 15,
|
||||
-- Width of preview window
|
||||
width_preview = 25,
|
||||
},
|
||||
})
|
||||
|
||||
vim.keymap.set("n", "-", '<CMD>lua MiniFiles.open(vim.api.nvim_buf_get_name(0)); MiniFiles.reveal_cwd()<CR>', { desc = 'Open MiniFiles' })
|
||||
vim.keymap.set("n", "<ESC>", '<CMD>lua MiniFiles.close()<CR>', { desc = 'Close MiniFiles' })
|
||||
50
nvim/plugin/rustaceanvim.lua
Normal file
50
nvim/plugin/rustaceanvim.lua
Normal file
@@ -0,0 +1,50 @@
|
||||
-- vim.g.auto_ra_attach = true
|
||||
--
|
||||
-- vim.g.rustaceanvim = {
|
||||
-- -- Plugin configuration
|
||||
-- tools = {},
|
||||
-- -- LSP configuration
|
||||
-- ---@type RustaceanLspClientOpts
|
||||
-- server = {
|
||||
-- load_vscode_settings = true,
|
||||
-- auto_attach = function(bufnr)
|
||||
-- return vim.g.auto_ra_attach
|
||||
-- end,
|
||||
-- on_attach = function(client, _)
|
||||
-- client.server_capabilities.workspace.didChangeWatchedFiles = {
|
||||
-- dynamicRegistration = false,
|
||||
-- relativePatternSupport = false,
|
||||
-- }
|
||||
--
|
||||
-- vim.api.nvim_create_autocmd({ 'BufEnter' }, {
|
||||
-- desc = 'Resize splits when resizing the window',
|
||||
-- pattern = { '*.rs' },
|
||||
-- callback = function()
|
||||
-- vim.cmd('RustAnalyzer reloadSettings')
|
||||
-- end,
|
||||
-- })
|
||||
-- end,
|
||||
-- default_settings = {
|
||||
-- ['rust-analyzer'] = {
|
||||
-- cachePriming = false,
|
||||
-- rustfmt = {
|
||||
-- extraArgs = {
|
||||
-- '--config',
|
||||
-- 'comment_width=120,condense_wildcard_suffixes=false,format_code_in_doc_comments=true,format_macro_bodies=true,hex_literal_case=Upper,imports_granularity=One,normalize_doc_attributes=true,wrap_comments=true',
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- -- DAP configuration
|
||||
-- dap = {},
|
||||
-- }
|
||||
--
|
||||
-- return {
|
||||
-- {
|
||||
-- 'mrcjkb/rustaceanvim',
|
||||
-- version = '^4', -- Recommended
|
||||
-- ft = { 'rust' },
|
||||
-- dev = true,
|
||||
-- },
|
||||
-- }
|
||||
18
nvim/plugin/telescope.lua
Normal file
18
nvim/plugin/telescope.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
-- [[ Configure Telescope ]]
|
||||
-- See `:help telescope` and `:help telescope.setup()`
|
||||
require('telescope').setup {
|
||||
defaults = {
|
||||
mappings = {
|
||||
i = {
|
||||
['<C-u>'] = false,
|
||||
['<C-d>'] = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
local builtin = require('telescope.builtin')
|
||||
|
||||
vim.keymap.set('n', '<leader>pf', builtin.find_files, {noremap = true})
|
||||
vim.keymap.set('n', '<leader>pg', builtin.live_grep, {noremap = true})
|
||||
vim.keymap.set('n', '<C-p>', builtin.git_files, {noremap = true})
|
||||
Reference in New Issue
Block a user