minor updates and such

This commit is contained in:
Rahsheen Porter 2023-08-29 19:26:16 -04:00
parent 7bc48c6df4
commit 7d66dea176
6 changed files with 39 additions and 17 deletions

View File

@ -1,6 +1,6 @@
require("lualine").setup({
options = {
theme = "onedark",
theme = "tokyonight",
tabline = {
lualine_a = { "buffers" },
lualine_b = { "branch" },

View File

@ -30,6 +30,7 @@ null_ls.setup({
sources = {
formatting.prettier,
formatting.stylua,
null_ls.builtins.code_actions.gitsigns,
-- Here we set a conditional to call the rubocop formatter. If we have a Gemfile in the project, we call "bundle exec rubocop", if not we only call "rubocop".
conditional(function(utils)

View File

@ -55,7 +55,12 @@ require("lazy").setup({
{ -- Autocompletion
"hrsh7th/nvim-cmp",
dependencies = { "hrsh7th/cmp-nvim-lsp", "L3MON4D3/LuaSnip", "saadparwaiz1/cmp_luasnip" },
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"L3MON4D3/LuaSnip",
"saadparwaiz1/cmp_luasnip",
"rafamadriz/friendly-snippets",
},
},
-- Useful plugin to show you pending keybinds.

View File

@ -1,4 +1,23 @@
return {
{
"ThePrimeagen/refactoring.nvim",
requires = {
{ "nvim-lua/plenary.nvim" },
{ "nvim-treesitter/nvim-treesitter" },
},
config = function()
require("refactoring").setup({})
end,
},
{
"folke/tokyonight.nvim",
lazy = false, -- make sure we load this during startup if it is your main colorscheme
priority = 1000, -- make sure to load this before all the other start plugins
config = function()
-- load the colorscheme here
vim.cmd([[colorscheme tokyonight]])
end,
},
-- formatting & linting
"jose-elias-alvarez/null-ls.nvim",
-- use("jayp0521/mason-null-ls.nvim")
@ -23,4 +42,10 @@ return {
})
end,
},
{
"rafamadriz/friendly-snippets",
config = function()
require("luasnip.loaders.from_vscode").lazy_load()
end,
},
}

View File

@ -15,21 +15,12 @@ vim.opt.wrap = false
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.undofile = true
vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.opt.termguicolors = true
vim.opt.scrolloff = 8
vim.opt.signcolumn = "yes"
vim.opt.isfname:append("@-@")
vim.opt.updatetime = 50
vim.opt.colorcolumn = "80"
vim.opt.mouse = ""
vim.g.mapleader = " "
vim.opt.mouse = "v"

View File

@ -3,8 +3,8 @@
if [[ $# -eq 1 ]]; then
selected=$1
else
selected=$(find ~/.config ~/Development/nurx ~/Development ~/Development/keeps-next ~/Development/keeps-frontend -mindepth 1 -maxdepth 1 -type d | fzf)
#selected=$(find ~/.config ~/Development -mindepth 1 -maxdepth 1 -type d | fzf)
#selected=$(find ~/.config ~/Development ~/Development/keeps-next ~/Development/keeps-frontend ~/Development/keeps-frontend/bug/**/ -mindepth 1 -maxdepth 1 -type d | fzf)
selected=$(find ~/Development/* -mindepth 1 -maxdepth 10 -type d -prune -a ! -name "node_modules" | fzf)
fi
if [[ -z $selected ]]; then