Skip to content

Commit

Permalink
Merge pull request #27 from raelldottin/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
raelldottin authored Nov 14, 2023
2 parents b422dce + 30e265b commit 5680710
Show file tree
Hide file tree
Showing 6 changed files with 151 additions and 153 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!---
This file is auto-generate by a github hook please modify README.template if you don't want to loose your work
-->
# raelldottin/dotfiles v0.2.0-98
# raelldottin/dotfiles v0.2.0-103
[![Makefile Linter](https://github.com/raelldottin/dotfiles/actions/workflows/checkmake.yml/badge.svg)](https://github.com/raelldottin/dotfiles/actions/workflows/checkmake.yml)
[![Shell Script Linter](https://github.com/raelldottin/dotfiles/actions/workflows/shellcheck.yml/badge.svg)](https://github.com/raelldottin/dotfiles/actions/workflows/shellcheck.yml)
[![Lua Linter](https://github.com/raelldottin/dotfiles/actions/workflows/luacheck.yml/badge.svg)](https://github.com/raelldottin/dotfiles/actions/workflows/luacheck.yml)
[![Python Linter](https://github.com/raelldottin/dotfiles/actions/workflows/pyright.yml/badge.svg)](https://github.com/raelldottin/dotfiles/actions/workflows/pyright.yml)

[![ v0.2.0-98 ](https://github.com/raelldottin/dotfiles/blob/main/PNGimage.png)](https://github.com/raelldottin/dotfiles/blob/main/PNGimage.png)
[![ v0.2.0-103 ](https://github.com/raelldottin/dotfiles/blob/main/PNGimage.png)](https://github.com/raelldottin/dotfiles/blob/main/PNGimage.png)

**Table of Contents**

Expand Down
2 changes: 1 addition & 1 deletion config/nvim/lua/core/colorscheme.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- set colorscheme to nightfly with protected call
-- in case it isn't installed
local status, _ = pcall(vim.cmd, "colorscheme nightfly")
local status, _ = pcall(vim.cmd, "catppuccin")
if not status then
print("Colorscheme not found!") -- print error if colorscheme not installed
return
Expand Down
4 changes: 2 additions & 2 deletions config/nvim/lua/core/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ opt.relativenumber = true -- show relative line numbers
opt.number = true -- shows absolute line number on cursor line (when relative number is on)

-- tabs & indentation
opt.tabstop = 2 -- 2 spaces for tabs (prettier default)
opt.shiftwidth = 2 -- 2 spaces for indent width
opt.tabstop = 4 -- 4 spaces for tabs
opt.shiftwidth = 4 -- 4 spaces for indent width
opt.expandtab = true -- expand tab to spaces
opt.autoindent = true -- copy indent from current line when starting new one

Expand Down
203 changes: 102 additions & 101 deletions config/nvim/lua/plugins-setup.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
-- bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)

Expand All @@ -17,107 +17,108 @@ vim.g.mapleader = " "
vim.g.maplocalleader = " "

require("lazy").setup({
"nvim-lua/plenary.nvim", -- lua functions for many other plugins
"nvim-lua/plenary.nvim", -- lua functions for many other plugins

"bluz71/vim-nightfly-guicolors", -- preferred colorscheme
{ "catppuccin/nvim", name = "catppuccin", priority = 1000 },
-- "bluz71/vim-nightfly-guicolors", -- preferred colorscheme

"christoomey/vim-tmux-navigator", -- tmux & split window navigation
"christoomey/vim-tmux-navigator", -- tmux & split window navigation

"szw/vim-maximizer", -- maximizes and restores current window
"szw/vim-maximizer", -- maximizes and restores current window

-- essential plugins
"tpope/vim-surround", -- add, delete, change surroundings (it's awesome,
"inkarkat/vim-ReplaceWithRegister", -- replace with register contents using motion (gr + motion,
-- essential plugins
"tpope/vim-surround", -- add, delete, change surroundings (it's awesome,
"inkarkat/vim-ReplaceWithRegister", -- replace with register contents using motion (gr + motion,

-- commenting with gc
-- "numToStr/Comment.nvim",
-- commenting with gc
-- "numToStr/Comment.nvim",

-- file explorer
"nvim-tree/nvim-tree.lua",
-- file explorer
"nvim-tree/nvim-tree.lua",

-- statusline
"nvim-lualine/lualine.nvim",
{
"kdheepak/tabline.nvim",
config = function()
vim.cmd([[
-- statusline
"nvim-lualine/lualine.nvim",
{
"kdheepak/tabline.nvim",
config = function()
vim.cmd([[
set guioptions-=e " Use showtabline in gui vim
set sessionoptions+=tabpages,globals " store tabpages and globals in session
]])
end,
dependencies = { "nvim-lualine/lualine.nvim", "kyazdani42/nvim-web-devicons" },
},

-- fuzzy finding w/ telescope
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" }, -- dependency for better sorting performance
{ "nvim-telescope/telescope.nvim", branch = "0.1.x" }, -- fuzzy finder
"nvim-lua/popup.nvim",

-- autocompletion
"hrsh7th/nvim-cmp", -- completion plugin
"hrsh7th/cmp-buffer", -- source for text in buffer
"hrsh7th/cmp-path", -- source for file system paths

-- snippets
"L3MON4D3/LuaSnip", -- snippet engine
"saadparwaiz1/cmp_luasnip", -- for autocompletion
--"rafamadriz/friendly-snippets", -- useful snippets

-- managing & installing lsp servers, linters & formatters
"williamboman/mason.nvim", -- in charge of managing lsp servers, linters & formatters
"williamboman/mason-lspconfig.nvim", -- bridges gap b/w mason & lspconfig

-- configuring lsp servers
"neovim/nvim-lspconfig", -- easily configure language servers
"hrsh7th/cmp-nvim-lsp", -- for autocompletion
"jose-elias-alvarez/typescript.nvim", -- additional functionality for typescript server (e.g. rename file & update imports,
"onsails/lspkind.nvim", -- vs-code like icons for autocompletion
{
"glepnir/lspsaga.nvim",
branch = "main",
config = function()
require("lspsaga").setup({})
end,
},

-- formatting & linting
"jose-elias-alvarez/null-ls.nvim", -- configure formatters & linters
"jayp0521/mason-null-ls.nvim", -- bridges gap b/w mason & null-ls

-- dap
"mfussenegger/nvim-dap",
"mfussenegger/nvim-dap-python",
"rcarriga/nvim-dap-ui",
"theHamsta/nvim-dap-virtual-text",
"nvim-telescope/telescope-dap.nvim",

-- treesitter configuration
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
dependencies = {
"windwp/nvim-autopairs",
-- "windwp/nvim-ts-autotag",
},
},
{
"windwp/nvim-autopairs",
event = "InsertEnter",
opts = {}, -- this is equalent to setup({}) function
},
"nvim-treesitter/nvim-treesitter-context",

-- git integration
"lewis6991/gitsigns.nvim", -- show line modifications on left hand side

-- wakatime
"wakatime/vim-wakatime",

-- hard time
--{
-- "m4xshen/hardtime.nvim",
-- dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
-- opts = {}
--},
-- "madox2/vim-ai",
end,
dependencies = { "nvim-lualine/lualine.nvim", "kyazdani42/nvim-web-devicons" },
},

-- fuzzy finding w/ telescope
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" }, -- dependency for better sorting performance
{ "nvim-telescope/telescope.nvim", branch = "0.1.x" }, -- fuzzy finder
"nvim-lua/popup.nvim",

-- autocompletion
"hrsh7th/nvim-cmp", -- completion plugin
"hrsh7th/cmp-buffer", -- source for text in buffer
"hrsh7th/cmp-path", -- source for file system paths

-- snippets
"L3MON4D3/LuaSnip", -- snippet engine
"saadparwaiz1/cmp_luasnip", -- for autocompletion
--"rafamadriz/friendly-snippets", -- useful snippets

-- managing & installing lsp servers, linters & formatters
"williamboman/mason.nvim", -- in charge of managing lsp servers, linters & formatters
"williamboman/mason-lspconfig.nvim", -- bridges gap b/w mason & lspconfig

-- configuring lsp servers
"neovim/nvim-lspconfig", -- easily configure language servers
"hrsh7th/cmp-nvim-lsp", -- for autocompletion
"jose-elias-alvarez/typescript.nvim", -- additional functionality for typescript server (e.g. rename file & update imports,
"onsails/lspkind.nvim", -- vs-code like icons for autocompletion
{
"glepnir/lspsaga.nvim",
branch = "main",
config = function()
require("lspsaga").setup({})
end,
},

-- formatting & linting
"jose-elias-alvarez/null-ls.nvim", -- configure formatters & linters
"jayp0521/mason-null-ls.nvim", -- bridges gap b/w mason & null-ls

-- dap
"mfussenegger/nvim-dap",
"mfussenegger/nvim-dap-python",
"rcarriga/nvim-dap-ui",
"theHamsta/nvim-dap-virtual-text",
"nvim-telescope/telescope-dap.nvim",

-- treesitter configuration
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
dependencies = {
"windwp/nvim-autopairs",
-- "windwp/nvim-ts-autotag",
},
},
{
"windwp/nvim-autopairs",
event = "InsertEnter",
opts = {}, -- this is equalent to setup({}) function
},
"nvim-treesitter/nvim-treesitter-context",

-- git integration
"lewis6991/gitsigns.nvim", -- show line modifications on left hand side

-- wakatime
"wakatime/vim-wakatime",

-- hard time
--{
-- "m4xshen/hardtime.nvim",
-- dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
-- opts = {}
--},
-- "madox2/vim-ai",
})
90 changes: 43 additions & 47 deletions config/nvim/lua/plugins/lsp/mason.lua
Original file line number Diff line number Diff line change
@@ -1,70 +1,66 @@
local mason_status, mason = pcall(require, "mason")
if not mason_status then
return
return
end

-- import mason-lspconfig plugin safely
local mason_lspconfig_status, mason_lspconfig = pcall(require, "mason-lspconfig")
if not mason_lspconfig_status then
return
return
end

-- import mason-null-ls plugin safely
local mason_null_ls_status, mason_null_ls = pcall(require, "mason-null-ls")
if not mason_null_ls_status then
return
return
end

-- enable mason
mason.setup({
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = "",
},
},
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = "",
},
},
})

mason_lspconfig.setup({
-- list of servers for mason to install
ensure_installed = {
"bashls",
"clangd",
"dockerls",
"golangci_lint_ls",
"gopls",
"jsonls",
"lua_ls",
"prosemd_lsp",
"marksman",
"powershell_es",
"terraformls",
"tflint",
},
-- auto-install configured servers (with lspconfig)
automatic_installation = true, -- not the same as ensure_installed
-- list of servers for mason to install
ensure_installed = {
"bashls",
"clangd",
"dockerls",
"golangci_lint_ls",
"gopls",
"jsonls",
"lua_ls",
"prosemd_lsp",
"marksman",
"terraformls",
"tflint",
},
-- auto-install configured servers (with lspconfig)
automatic_installation = true, -- not the same as ensure_installed
})

mason_null_ls.setup({
-- list of formatters & linters for mason to install
ensure_installed = {
"cpplint",
"clang_format",
"hadolint",
"gitlint",
"gofumpt",
"stylua",
"alex",
"autopep8",
"black",
"pyright",
"pylint",
"shellcheck",
"shellharden",
"shfmt",
"stylua", -- lua formatter
},
-- auto-install configured formatters & linters (with null-ls)
automatic_setup = false,
-- list of formatters & linters for mason to install
ensure_installed = {
"cpplint",
"clang_format",
"hadolint",
"gitlint",
"gofumpt",
"stylua",
"alex",
"black",
"pylint",
"shellcheck",
"shfmt",
"stylua", -- lua formatter
},
-- auto-install configured formatters & linters (with null-ls)
automatic_setup = true,
})
1 change: 1 addition & 0 deletions homebrew_installed_app.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ python-packaging
python-psutil
python-setuptools
[email protected]
[email protected]
pyyaml
readline
reattach-to-user-namespace
Expand Down

0 comments on commit 5680710

Please sign in to comment.