mirror of
https://github.com/gabehf/nvim-conf.git
synced 2026-03-11 16:30:30 -07:00
stuff
This commit is contained in:
parent
6567c2cf57
commit
6e55699645
13 changed files with 211 additions and 8 deletions
|
|
@ -13,7 +13,7 @@ return {
|
|||
bash = { "shfmt" },
|
||||
sh = { "shfmt" },
|
||||
lua = { "stylua" },
|
||||
go = { "goimports", "gofumpt", "goimports-reviser" },
|
||||
go = { "goimports", "gofumpt" },
|
||||
javascript = { { "prettierd", "prettier" } },
|
||||
typescript = { { "prettierd", "prettier" } },
|
||||
javascriptreact = { { "prettierd", "prettier" } },
|
||||
|
|
|
|||
14
lua/plugins/go.lua
Normal file
14
lua/plugins/go.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
"ray-x/go.nvim",
|
||||
dependencies = { -- optional packages
|
||||
"ray-x/guihua.lua",
|
||||
"neovim/nvim-lspconfig",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
config = function()
|
||||
require("go").setup()
|
||||
end,
|
||||
event = { "CmdlineEnter" },
|
||||
ft = { "go", "gomod" },
|
||||
build = ':lua require("go.install").update_all_sync()', -- if you need to install/update all binaries
|
||||
}
|
||||
|
|
@ -28,6 +28,10 @@ return {
|
|||
"clangd",
|
||||
"lua_ls",
|
||||
"pyright",
|
||||
"html",
|
||||
"htmx",
|
||||
"emmet_ls",
|
||||
"templ",
|
||||
},
|
||||
handlers = {
|
||||
function(server_name)
|
||||
|
|
@ -39,6 +43,36 @@ return {
|
|||
},
|
||||
},
|
||||
}
|
||||
require("lspconfig").emmet_ls.setup {
|
||||
-- on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
filetypes = {
|
||||
"css",
|
||||
"eruby",
|
||||
"html",
|
||||
"javascript",
|
||||
"javascriptreact",
|
||||
"less",
|
||||
"sass",
|
||||
"scss",
|
||||
"svelte",
|
||||
"pug",
|
||||
"typescriptreact",
|
||||
"vue",
|
||||
"templ",
|
||||
},
|
||||
init_options = {
|
||||
html = {
|
||||
options = {
|
||||
-- For possible options, see: https://github.com/emmetio/emmet/blob/master/src/config.ts#L79-L267
|
||||
["bem.enabled"] = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
require("lspconfig").htmx.setup {
|
||||
filetypes = { "html", "templ" },
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
opts = function()
|
||||
require "configs.cmp"
|
||||
end,
|
||||
config = function(_, opts)
|
||||
require("cmp").setup(opts)
|
||||
end,
|
||||
dependencies = {
|
||||
{
|
||||
-- snippet plugin
|
||||
|
|
@ -11,6 +17,12 @@ return {
|
|||
require "configs.luasnip"
|
||||
end,
|
||||
},
|
||||
{
|
||||
"quangnguyen30192/cmp-nvim-ultisnips",
|
||||
config = function()
|
||||
require("cmp_nvim_ultisnips").setup {}
|
||||
end,
|
||||
},
|
||||
|
||||
-- autopairing of (){}[] etc
|
||||
{
|
||||
|
|
@ -32,6 +44,7 @@ return {
|
|||
{
|
||||
"saadparwaiz1/cmp_luasnip",
|
||||
"hrsh7th/cmp-nvim-lua",
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-buffer",
|
||||
"hrsh7th/cmp-path",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -5,12 +5,9 @@ return {
|
|||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
lazy = true,
|
||||
opts = function()
|
||||
return { override = require "nvchad.icons.devicons" }
|
||||
end,
|
||||
opts = function()
|
||||
require "configs.nvim-tree"
|
||||
end,
|
||||
-- opts = function()
|
||||
-- return { override = require "nvchad.icons.devicons" }
|
||||
-- end,
|
||||
config = function(_, opts)
|
||||
-- dofile(vim.g.base46_cache .. "devicons")
|
||||
require("nvim-web-devicons").setup(opts)
|
||||
|
|
|
|||
18
lua/plugins/themes.lua
Normal file
18
lua/plugins/themes.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
return {
|
||||
{
|
||||
"scottmckendry/cyberdream.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
config = function()
|
||||
require("cyberdream").setup {
|
||||
-- Recommended - see "Configuring" below for more config options
|
||||
transparent = true,
|
||||
italic_comments = true,
|
||||
hide_fillchars = true,
|
||||
-- borderless_telescope = true,
|
||||
terminal_colors = true,
|
||||
}
|
||||
vim.cmd "colorscheme cyberdream" -- set the colorscheme
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue