fixing merge conflicts

This commit is contained in:
talksik
2024-11-01 14:03:11 -07:00
2 changed files with 36 additions and 22 deletions
+30 -3
View File
@@ -246,7 +246,7 @@ vim.opt.rtp:prepend(lazypath)
-- NOTE: Here is where you install your plugins. -- NOTE: Here is where you install your plugins.
require('lazy').setup({ require('lazy').setup({
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically -- 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
-- NOTE: Plugins can also be added by using a table, -- NOTE: Plugins can also be added by using a table,
-- with the first argument being the link and the following -- with the first argument being the link and the following
@@ -557,6 +557,8 @@ require('lazy').setup({
local capabilities = vim.lsp.protocol.make_client_capabilities() local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = vim.tbl_deep_extend('force', capabilities, require('cmp_nvim_lsp').default_capabilities()) capabilities = vim.tbl_deep_extend('force', capabilities, require('cmp_nvim_lsp').default_capabilities())
vim.filetype.add({ extension = { templ = "templ" } })
-- Enable the following language servers -- Enable the following language servers
-- Feel free to add/remove any LSPs that you want here. They will automatically be installed. -- Feel free to add/remove any LSPs that you want here. They will automatically be installed.
-- --
@@ -581,7 +583,29 @@ require('lazy').setup({
}, },
filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'hpp', 'h', 'cc' }, filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'hpp', 'h', 'cc' },
}, },
gopls = {}, -- gopls = {},
templ = {
cmd = { 'templ', 'lsp' },
filetypes = { 'templ' },
-- root_dir = require('lspconfig').util.root_pattern('go.mod', 'go.sum'),
},
html = {
filetypes = { 'html', 'templ' },
},
-- htmx = {
-- filetypes = { 'htmx', 'templ' },
-- },
tailwindcss = {
filetypes = { "templ", "astro", "javascript", "typescript", "react" },
settings = {
tailwindCSS = {
includeLanguages = {
templ = "html",
},
},
},
},
-- pyright = {}, -- pyright = {},
-- rust_analyzer = {}, -- rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
@@ -842,8 +866,11 @@ require('lazy').setup({
{ -- Highlight, edit, and navigate code { -- Highlight, edit, and navigate code
'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate', build = ':TSUpdate',
dependencies = {
'vrischmann/tree-sitter-templ',
},
opts = { opts = {
ensure_installed = { 'bash', 'c', 'html', 'lua', 'markdown', 'vim', 'vimdoc' }, ensure_installed = { 'bash', 'c', 'html', 'lua', 'markdown', 'vim', 'vimdoc', 'templ' },
-- Autoinstall languages that are not installed -- Autoinstall languages that are not installed
auto_install = true, auto_install = true,
highlight = { highlight = {
-13
View File
@@ -98,19 +98,6 @@ return {
end, end,
}, },
-- -- add in shortcuts for next and previous buffer
-- {
-- 'romgrk/barbar.nvim',
-- config = function()
-- vim.keymap.set('n', '<leader>9', function()
-- vim.cmd 'BufferPrevious'
-- end, {})
-- vim.keymap.set('n', '<leader>0', function()
-- vim.cmd 'BufferNext'
-- end, {})
-- end,
-- },
{ {
"davidmh/mdx.nvim", "davidmh/mdx.nvim",
config = true, config = true,