some stuff idk dude

This commit is contained in:
Gabe Farrell 2024-04-17 21:31:56 -04:00
parent 2f1b13efc2
commit 39bb1219dc
7 changed files with 70 additions and 23 deletions

1
lua/configs/luasnip.lua Normal file
View file

@ -0,0 +1 @@
return {}

View file

@ -17,9 +17,9 @@ return {
"astro",
"bash",
},
highlight = {
enable = true,
use_languagetree = true,
},
-- highlight = {
-- enable = true,
-- use_languagetree = true,
-- },
indent = { { enable = true } },
}

View file

@ -28,7 +28,7 @@ M.ui = {
-- round and block will work for minimal theme only
separator_style = "default",
order = nil,
modules = nil,
modules = { "git" },
},
tabufline = {
@ -52,11 +52,11 @@ M.ui = {
buttons = {
{ " Find File", "Spc f f", "Telescope find_files" },
{ "󰈚 Recent Files", "Spc f o", "Telescope oldfiles" },
{ "󰈭 Find Word", "Spc f w", "Telescope live_grep" },
{ " Bookmarks", "Spc m a", "Telescope marks" },
{ "󰈚 Recent Files", "Spc f r", "Telescope oldfiles" },
{ "󰈭 Find Word", "Spc p g", "Telescope live_grep" },
-- { " Bookmarks", "Spc m a", "Telescope marks" },
{ " Themes", "Spc t h", "Telescope themes" },
{ " Mappings", "Spc c h", "NvCheatsheet" },
-- { " Mappings", "Spc c h", "NvCheatsheet" },
},
},
@ -64,18 +64,18 @@ M.ui = {
lsp = { signature = true },
term = {
hl = "Normal:term,WinSeparator:WinSeparator",
sizes = { sp = 0.3, vsp = 0.2 },
float = {
relative = "editor",
row = 0.3,
col = 0.25,
width = 0.5,
height = 0.4,
border = "single",
},
},
-- term = {
-- hl = "Normal:term,WinSeparator:WinSeparator",
-- sizes = { sp = 0.3, vsp = 0.2 },
-- float = {
-- relative = "editor",
-- row = 0.3,
-- col = 0.25,
-- width = 0.5,
-- height = 0.4,
-- border = "single",
-- },
-- },
}
M.base46 = {

View file

@ -46,6 +46,43 @@ return {
},
{ "neovim/nvim-lspconfig" },
{ "hrsh7th/cmp-nvim-lsp" },
{ "hrsh7th/nvim-cmp" },
{ "L3MON4D3/LuaSnip" },
{
"hrsh7th/nvim-cmp",
dependencies = {
{
-- snippet plugin
"L3MON4D3/LuaSnip",
dependencies = "rafamadriz/friendly-snippets",
opts = { history = true, updateevents = "TextChanged,TextChangedI" },
config = function(_, opts)
require("luasnip").config.set_config(opts)
require "configs.luasnip"
end,
},
-- autopairing of (){}[] etc
{
"windwp/nvim-autopairs",
opts = {
fast_wrap = {},
disable_filetype = { "TelescopePrompt", "vim" },
},
config = function(_, opts)
require("nvim-autopairs").setup(opts)
-- setup cmp for autopairs
local cmp_autopairs = require "nvim-autopairs.completion.cmp"
require("cmp").event:on("confirm_done", cmp_autopairs.on_confirm_done())
end,
},
-- cmp sources plugins
{
"saadparwaiz1/cmp_luasnip",
"hrsh7th/cmp-nvim-lua",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
},
},
},
}

View file

@ -13,6 +13,7 @@ map("i", "jk", "<Esc>")
-- telescope keybinds
local builtin = require "telescope.builtin"
map("n", "<leader>ff", builtin.find_files, { desc = "[f]ind [f]ile" })
map("n", "<leader>fr", "<cmd>Telescope oldfiles<CR>", { desc = "[f]ind [r]ecent file" })
map("n", "<leader>pg", builtin.live_grep, { desc = "[p]roject [g]rep" })
map("n", "<leader>fb", builtin.buffers, { desc = "[f]ind [b]uffer" })
map("n", "<leader>fh", builtin.help_tags, { desc = "[f]ind [h]elp" })