fix: quotes

This commit is contained in:
2026-09-06 20:11:38 +02:00
parent 37440d88e1
commit 5becb7c8b5
6 changed files with 120 additions and 120 deletions
+25 -25
View File
@@ -1,10 +1,10 @@
-- Colortheme
Config.now(function()
vim.pack.add({ { src = "https://github.com/rose-pine/neovim", name = "rose-pine" } })
require("rose-pine").setup({
vim.pack.add({ { src = 'https://github.com/rose-pine/neovim', name = 'rose-pine' } })
require('rose-pine').setup({
enable = { terminal = false, legacy_highlights = false, migrations = false },
})
vim.cmd("colorscheme rose-pine")
vim.cmd('colorscheme rose-pine')
end)
-- Treesitter
@@ -20,7 +20,7 @@ Config.now_if_args(function()
Config.on_filetype(table.concat(filetypes, ','), function()
local buf = vim.api.nvim_get_current_buf()
if pcall(vim.treesitter.start, buf) and vim.bo[buf].filetype == 'php' then
vim.bo[buf].indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
vim.bo[buf].indentexpr = 'v:lua.require"nvim-treesitter".indentexpr()'
end
end)
@@ -33,32 +33,32 @@ end)
-- LSP
Config.now_if_args(function()
vim.pack.add({ "https://github.com/neovim/nvim-lspconfig" })
vim.lsp.enable({ "ansiblels", "gopls", "intelephense", "lua_ls", "svelte", "tailwindcss", "tsc", "dartls" })
vim.pack.add({ 'https://github.com/neovim/nvim-lspconfig' })
vim.lsp.enable({ 'ansiblels', 'gopls', 'intelephense', 'svelte', 'tailwindcss', 'tsc' })
end)
-- Formatting
Config.later(function()
vim.pack.add({ "https://github.com/stevearc/conform.nvim" })
require("conform").setup({
default_format_opts = { lsp_format = "fallback" },
format_on_save = { lsp_format = "fallback", timeout_ms = 1000 },
vim.pack.add({ 'https://github.com/stevearc/conform.nvim' })
require('conform').setup({
default_format_opts = { lsp_format = 'fallback' },
format_on_save = { lsp_format = 'fallback', timeout_ms = 1000 },
formatters_by_ft = {
go = { "gofumpt", "goimports" },
php = { "php_cs_fixer" },
json = { "jq" },
javascript = { "biome" },
typescript = { "biome" },
javascriptreact = { "biome" },
typescriptreact = { "biome" },
svelte = { "biome" },
go = { 'gofumpt', 'goimports' },
php = { 'php_cs_fixer' },
json = { 'jq' },
javascript = { 'biome' },
typescript = { 'biome' },
javascriptreact = { 'biome' },
typescriptreact = { 'biome' },
svelte = { 'biome' },
},
})
end)
-- DAP
Config.later(function()
vim.pack.add({ "https://github.com/mfussenegger/nvim-dap" })
vim.pack.add({ 'https://github.com/mfussenegger/nvim-dap' })
local dap_signs = {
DapBreakpoint = { text = '', texthl = 'DapBreakpoint' },
@@ -71,20 +71,20 @@ Config.later(function()
vim.fn.sign_define(name, sign)
end
require("dap").adapters.go = { type = "server", host = "127.0.0.1", port = "${port}" }
require('dap').adapters.go = { type = 'server', host = '127.0.0.1', port = '${port}' }
end)
-- Kulala
Config.on_filetype('http', function()
vim.pack.add({ "https://github.com/mistweaverco/kulala.nvim" })
require("kulala").setup({ default_env = "dev" })
vim.pack.add({ 'https://github.com/mistweaverco/kulala.nvim' })
require('kulala').setup({ default_env = 'dev' })
end)
-- Flutter
Config.on_filetype('dart', function()
vim.pack.add({
"https://github.com/nvim-lua/plenary.nvim",
"https://github.com/nvim-flutter/flutter-tools.nvim",
'https://github.com/nvim-lua/plenary.nvim',
'https://github.com/nvim-flutter/flutter-tools.nvim',
})
require("flutter-tools").setup({ lsp = { color_capabilities = true } })
require('flutter-tools').setup({ lsp = { color_capabilities = true } })
end)