- cleaned up plugin files
- htmldjango snippets and highlight fix
This commit is contained in:
2024-05-01 20:11:35 -05:00
parent 1264a64a55
commit 0ec71045f4
8 changed files with 139 additions and 121 deletions
+8 -2
View File
@@ -392,7 +392,7 @@ function M.lsp_zero()
"pyright",
"lua_ls",
"bashls",
--"gopls",
"gopls",
-- js web shit
"html",
@@ -401,6 +401,8 @@ function M.lsp_zero()
"svelte",
"angularls",
"tailwindcss",
"templ",
"htmx",
})
lsp.configure("pyright", {
@@ -416,7 +418,11 @@ function M.lsp_zero()
})
lsp.configure("html", {
filetypes = { "html", "htmldjango" },
filetypes = { "html", "htmldjango", "templ" },
})
lsp.configure("htmx", {
filetypes = { "html", "htmldjango", "templ" },
})
lsp.on_attach(function(client, bufnr)
+4 -3
View File
@@ -1,8 +1,9 @@
require("plugins.install_packer")
require("plugins.startup")
local setup = require("plugins.setup")
local config = require("plugins.config")
setup.install_packer()
setup.install_plugins()
config.auto_session()
config.fzf()
config.fzf_checkout()
-8
View File
@@ -1,8 +0,0 @@
local fn = vim.fn
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path })
vim.cmd("packadd packer.nvim")
vim.cmd(":PackerSync")
end
+109
View File
@@ -0,0 +1,109 @@
local M = {}
function M.install_packer()
local fn = vim.fn
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path })
vim.cmd("packadd packer.nvim")
vim.cmd(":PackerSync")
end
end
function M.install_plugins()
require("packer").startup(function(use)
use("wbthomason/packer.nvim")
-- NAVIGATION
use("phaazon/hop.nvim")
-- VIM THEMING
use("folke/tokyonight.nvim")
-- FILE MANAGEMENT
use("junegunn/fzf")
use("junegunn/fzf.vim")
use("kevinhwang91/rnvimr")
use("vijaymarupudi/nvim-fzf")
use("vijaymarupudi/nvim-fzf-commands")
-- SESSION
use("ThePrimeagen/harpoon")
use("nvim-lua/plenary.nvim")
use({
"rmagatti/auto-session",
config = function()
require("auto-session").setup({
log_level = "error",
auto_session_suppress_dirs = { "~/", "~/Projects", "~/Downloads", "/" },
})
end,
})
use("mbbill/undotree")
-- GIT
use("tpope/vim-fugitive")
use("stsewd/fzf-checkout.vim")
use("lewis6991/gitsigns.nvim")
-- EDITOR
use("lukas-reineke/indent-blankline.nvim")
use({
"nvim-lualine/lualine.nvim",
requires = { "kyazdani42/nvim-web-devicons", opt = true },
})
-- LSP
--use("p00f/nvim-ts-rainbow")
--use("nvimtools/none-ls.nvim")
use({
"nvim-treesitter/nvim-treesitter",
run = ":TSUpdate",
})
use("nvim-treesitter/nvim-treesitter-context")
use("nvim-treesitter/playground")
use("jose-elias-alvarez/null-ls.nvim")
use("windwp/nvim-autopairs")
use({
"VonHeikemen/lsp-zero.nvim",
branch = "v1.x",
requires = {
-- LSP Support
{ "neovim/nvim-lspconfig" }, -- Required
{ "williamboman/mason.nvim" }, -- Optional
{ "williamboman/mason-lspconfig.nvim" }, -- Optional
-- Autocompletion
{ "hrsh7th/nvim-cmp" }, -- Required
{ "hrsh7th/cmp-nvim-lsp" }, -- Required
{ "hrsh7th/cmp-buffer" }, -- Optional
{ "hrsh7th/cmp-path" }, -- Optional
{ "saadparwaiz1/cmp_luasnip" }, -- Optional
{ "hrsh7th/cmp-nvim-lua" }, -- Optional
-- Snippets
{ "L3MON4D3/LuaSnip" }, -- Required
{ "rafamadriz/friendly-snippets" }, -- Optional
},
})
-- JS
use("HerringtonDarkholme/yats.vim")
use("chemzqm/vim-jsx-improve")
use("yuezk/vim-js") -- js
use("maxmellon/vim-jsx-pretty") -- react/tsx syntax highlight & indent
-- HTML/CSS
use("mattn/emmet-vim")
-- ZIG
use("ziglang/zig.vim")
-- C#
use("jlcrochet/vim-razor")
end)
end
return M
-107
View File
@@ -1,107 +0,0 @@
require("packer").startup(function(use)
use("wbthomason/packer.nvim")
-- NAVIGATION
use("phaazon/hop.nvim")
-- VIM THEMING
--use("navarasu/onedark.nvim")
use("folke/tokyonight.nvim")
-- FILE MANAGEMENT
use("junegunn/fzf")
use("junegunn/fzf.vim")
use("kevinhwang91/rnvimr")
use("vijaymarupudi/nvim-fzf")
use("vijaymarupudi/nvim-fzf-commands")
-- SESSION
use("ThePrimeagen/harpoon")
use("nvim-lua/plenary.nvim")
use({
"rmagatti/auto-session",
config = function()
require("auto-session").setup({
log_level = "error",
auto_session_suppress_dirs = { "~/", "~/Projects", "~/Downloads", "/" },
})
end,
})
use("mbbill/undotree")
-- GIT
use("tpope/vim-fugitive")
use("stsewd/fzf-checkout.vim")
use("lewis6991/gitsigns.nvim")
-- EDITOR
use("lukas-reineke/indent-blankline.nvim")
use({
"nvim-lualine/lualine.nvim",
requires = { "kyazdani42/nvim-web-devicons", opt = true },
})
-- SNIPPETS
--use("SirVer/ultisnips")
--use("honza/vim-snippets")
--use("L3MON4D3/LuaSnip") -- Snippets plugin
-- LSP
--use("p00f/nvim-ts-rainbow")
use({
"nvim-treesitter/nvim-treesitter",
run = ":TSUpdate",
})
use("nvim-treesitter/nvim-treesitter-context")
use("nvim-treesitter/playground")
use("jose-elias-alvarez/null-ls.nvim")
--use("nvimtools/none-ls.nvim")
use("windwp/nvim-autopairs")
--use("neovim/nvim-lspconfig")
--use("williamboman/nvim-lsp-installer")
--use("jose-elias-alvarez/nvim-lsp-ts-utils")
--use({
-- "hrsh7th/cmp-nvim-lsp",
-- requires = "quangnguyen30192/cmp-nvim-ultisnips",
--})
--use("hrsh7th/nvim-cmp")
use({
"VonHeikemen/lsp-zero.nvim",
branch = "v1.x",
requires = {
-- LSP Support
{ "neovim/nvim-lspconfig" }, -- Required
{ "williamboman/mason.nvim" }, -- Optional
{ "williamboman/mason-lspconfig.nvim" }, -- Optional
-- Autocompletion
{ "hrsh7th/nvim-cmp" }, -- Required
{ "hrsh7th/cmp-nvim-lsp" }, -- Required
{ "hrsh7th/cmp-buffer" }, -- Optional
{ "hrsh7th/cmp-path" }, -- Optional
{ "saadparwaiz1/cmp_luasnip" }, -- Optional
{ "hrsh7th/cmp-nvim-lua" }, -- Optional
-- Snippets
{ "L3MON4D3/LuaSnip" }, -- Required
{ "rafamadriz/friendly-snippets" }, -- Optional
},
})
-- JS
use("HerringtonDarkholme/yats.vim")
use("chemzqm/vim-jsx-improve")
use("yuezk/vim-js") -- js
use("maxmellon/vim-jsx-pretty") -- react/tsx syntax highlight & indent
-- HTML/CSS
use("mattn/emmet-vim")
-- ZIG
use("ziglang/zig.vim")
-- C#
use("jlcrochet/vim-razor")
end)