123
This commit is contained in:
parent
4b490b8c29
commit
63bb8c0fc8
|
|
@ -1,5 +1,7 @@
|
||||||
vim.g.mapleader = ' '
|
vim.g.mapleader = ' '
|
||||||
vim.g.maplocalleader = ' '
|
vim.g.maplocalleader = ' '
|
||||||
|
vim.g.have_nerd_font = true
|
||||||
|
vim.opt.guifont='FiraCode Nerd Font'
|
||||||
-- Make line numbers default
|
-- Make line numbers default
|
||||||
vim.opt.number = true
|
vim.opt.number = true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
return { -- Adds git related signs to the gutter, as well as utilities for managing changes
|
||||||
|
'lewis6991/gitsigns.nvim',
|
||||||
|
opts = {
|
||||||
|
signs = {
|
||||||
|
add = { text = '+' },
|
||||||
|
change = { text = '~' },
|
||||||
|
delete = { text = '_' },
|
||||||
|
topdelete = { text = '‾' },
|
||||||
|
changedelete = { text = '~' },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
@ -88,42 +88,28 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
'nvim-telescope/telescope.nvim', tag = '0.1.8',
|
|
||||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
|
||||||
config = function()
|
|
||||||
require('telescope').setup({})
|
|
||||||
local builtin = require 'telescope.builtin'
|
|
||||||
keymap('n', '<leader>fh', builtin.help_tags, { desc = '[F]ind [H]elp' })
|
|
||||||
keymap('n', '<leader>fk', builtin.keymaps, { desc = '[F]ind [K]eymaps' })
|
|
||||||
keymap('n', '<leader>ff', builtin.find_files, { desc = '[F]ind [F]iles' })
|
|
||||||
keymap('n', '<leader>fa', builtin.find_files, { desc = '[F]ind [A]ll Files' })
|
|
||||||
keymap('n', '<leader>fs', builtin.builtin, { desc = '[F]ind Telescope' })
|
|
||||||
keymap('n', '<leader>fw', builtin.grep_string, { desc = '[F]ind current [W]ord' })
|
|
||||||
keymap('n', '<leader>fg', builtin.live_grep, { desc = '[F]ind by [G]rep' })
|
|
||||||
keymap('n', '<leader>fd', builtin.diagnostics, { desc = '[F]ind [D]iagnostics' })
|
|
||||||
keymap('n', '<leader>fr', builtin.resume, { desc = '[F]ind [R]esume' })
|
|
||||||
keymap('n', '<leader>f.', builtin.oldfiles, { desc = '[F]ind Recent Files ("." for repeat)' })
|
|
||||||
keymap('n', '<leader><leader>', builtin.buffers, { desc = '[ ] Find existing buffers' })
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"kylechui/nvim-surround",
|
"echasnovski/mini.nvim",
|
||||||
version = "^3.0.0", -- Use for stability; omit to use `main` branch for the latest features
|
|
||||||
event = "VeryLazy",
|
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-surround").setup({})
|
-- Better Around/Inside textobjects
|
||||||
end
|
require("mini.ai").setup { n_lines = 500 }
|
||||||
|
|
||||||
|
-- Add/delete/replace surroundings (brackets, quotes, etc.)
|
||||||
|
--
|
||||||
|
-- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
|
||||||
|
-- - sd' - [S]urround [D]elete [']quotes
|
||||||
|
-- - sr)' - [S]urround [R]eplace [)] [']
|
||||||
|
require("mini.surround").setup()
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"stevearc/oil.nvim",
|
"stevearc/oil.nvim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
config = function ()
|
config = function ()
|
||||||
require("oil").setup()
|
require("oil").setup({})
|
||||||
keymap("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" })
|
|
||||||
end
|
end
|
||||||
}
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,38 @@
|
||||||
|
return {
|
||||||
|
'nvim-telescope/telescope.nvim', tag = '0.1.8',
|
||||||
|
dependencies = {
|
||||||
|
{ 'nvim-lua/plenary.nvim' },
|
||||||
|
{
|
||||||
|
'nvim-telescope/telescope-fzf-native.nvim',
|
||||||
|
-- `build` is used to run some command when the plugin is installed/updated.
|
||||||
|
build = 'make',
|
||||||
|
-- `cond` is a condition used to determine whether this plugin should be
|
||||||
|
-- installed and loaded.
|
||||||
|
cond = function()
|
||||||
|
return vim.fn.executable 'make' == 1
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{ 'nvim-telescope/telescope-ui-select.nvim' },
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require('telescope').setup({})
|
||||||
|
local keymap = vim.keymap.set
|
||||||
|
local builtin = require 'telescope.builtin'
|
||||||
|
keymap('n', '<leader>fh', builtin.help_tags, { desc = '[F]ind [H]elp' })
|
||||||
|
keymap('n', '<leader>fk', builtin.keymaps, { desc = '[F]ind [K]eymaps' })
|
||||||
|
keymap('n', '<leader>ff', builtin.find_files, { desc = '[F]ind [F]iles' })
|
||||||
|
keymap('n', '<leader>fa', builtin.find_files, { desc = '[F]ind [A]ll Files' })
|
||||||
|
keymap('n', '<leader>fs', builtin.builtin, { desc = '[F]ind Telescope' })
|
||||||
|
keymap('n', '<leader>fw', builtin.grep_string, { desc = '[F]ind current [W]ord' })
|
||||||
|
keymap('n', '<leader>fg', builtin.live_grep, { desc = '[F]ind by [G]rep' })
|
||||||
|
keymap('n', '<leader>fd', builtin.diagnostics, { desc = '[F]ind [D]iagnostics' })
|
||||||
|
keymap('n', '<leader>fr', builtin.resume, { desc = '[F]ind [R]esume' })
|
||||||
|
keymap('n', '<leader>f.', builtin.oldfiles, { desc = '[F]ind Recent Files ("." for repeat)' })
|
||||||
|
keymap('n', '<leader><leader>', builtin.buffers, { desc = '[ ] Find existing buffers' })
|
||||||
|
|
||||||
|
keymap('n', '<leader>fn', function()
|
||||||
|
builtin.find_files { cwd = vim.fn.stdpath 'config' }
|
||||||
|
end, { desc = '[S]earch [N]eovim files' })
|
||||||
|
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
return { -- Useful plugin to show you pending keybinds.
|
||||||
|
'folke/which-key.nvim',
|
||||||
|
event = 'VimEnter', -- Sets the loading event to 'VimEnter'. Loads the plugin when nvim finishes starting up.
|
||||||
|
opts = {
|
||||||
|
-- delay between pressing a key and opening which-key (milliseconds)
|
||||||
|
-- this setting is independent of vim.o.timeoutlen
|
||||||
|
delay = 0,
|
||||||
|
icons = {
|
||||||
|
mappings = vim.g.have_nerd_font,
|
||||||
|
keys = vim.g.have_nerd_font and {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
@ -1,8 +1,3 @@
|
||||||
|
|
||||||
print("hello, world, ")
|
|
||||||
|
|
||||||
print("hello, world, ")
|
|
||||||
print("hello sir")
|
|
||||||
json = {
|
json = {
|
||||||
'a' : 1,
|
'a' : 1,
|
||||||
"b" : 2,
|
"b" : 2,
|
||||||
|
|
@ -16,7 +11,7 @@ def sample_func():
|
||||||
|
|
||||||
print("hello, worldworld")
|
print("hello, worldworld")
|
||||||
print("hello, world, ")
|
print("hello, world, ")
|
||||||
|
print()
|
||||||
print("hello, world, ")
|
print("hello, world, ")
|
||||||
print("hello, world, ")
|
print("hello, world, ")
|
||||||
json = {
|
json = {
|
||||||
|
|
@ -29,6 +24,7 @@ print("file name sample.py")
|
||||||
if True:
|
if True:
|
||||||
print("hello, world")
|
print("hello, world")
|
||||||
|
|
||||||
|
|
||||||
####################################################
|
####################################################
|
||||||
|
|
||||||
####################################################
|
####################################################
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue