1
0

Split plugins into files by category

This commit is contained in:
2025-09-21 18:21:43 +02:00
parent f33ecb78ee
commit 78698d82e6
13 changed files with 259 additions and 267 deletions

View File

@@ -0,0 +1,85 @@
require'lsphelp'
vim.lsp.config('hls', {
on_attach = default_on_attach,
capabilities = _G['capabilities'],
flags = {
debounce_text_changes = 150,
},
settings = {
haskell = {
plugin = {
stan = {
globalOn = false
}
}
}
}
})
vim.lsp.enable('hls')
vim.lsp.config('intelephense', {
on_attach = default_on_attach,
flags = {
debounce_text_changes = 150
},
init_options = {
licenceKey = os.getenv('HOME') .. '/Documents/Schluessel/intelephense.key',
storagePath = '/tmp/intelephense'
},
capabilities = _G['capabilities'],
settings = {
intelephense = {
environment = {
phpVersion = '8.2.0'
}
}
}
})
vim.lsp.enable('intelephense')
vim.lsp.config('clangd', {
on_attach = default_on_attach,
capabilities = _G['capabilities']
})
vim.lsp.enable('clangd')
require('flutter-tools').setup {
outline = {
open_cmd = "Vista"
},
lsp = {
on_attach = default_on_attach,
capabilities = _G['capabilities']
}
}
vim.lsp.config('twiggy_language_server', {
on_attach = default_on_attach,
capabilities = _G['capabilities'],
settings = {
twiggy = {
framework = 'symfony',
phpExecutable = 'php',
symfonyConsolePath = 'bin/console',
diagnostics = {
twigCsFixer = false
}
}
}
})
vim.lsp.enable('twiggy_language_server')
vim.g.vim_vue_plugin_config = {
syntax = {
template = {'html'},
script = {'javascript'},
style = {'css'},
},
full_syntax = {},
initial_indent = {},
attribute = 0,
keyword = 0,
foldexpr = 0,
debug = 0
}

View File

@@ -1,68 +0,0 @@
--
-- ALE
--
-- Run linters only on save
vim.g.ale_lint_on_text_changed = 'never'
vim.g.ale_lint_on_insert_leave = 0
-- Include the linter name (e.g. 'hack' or 'hhast'), code, and message in errors
vim.g.ale_echo_msg_format = '[%linter%] %s'
vim.g.ale_linters = {
hack = {'hack', 'hhast'},
haskell = {"hlint"},
javascript = {'eslint'},
d = {'dmd'},
php = {'phpcs', 'phpstan'},
ruby = {'rubocop'},
cpp = {},
asm = {},
}
vim.g.ale_ruby_rubocop_executable = 'bundle'
vim.g.ale_cpp_cc_options = '-std=c++17 -Wall'
vim.g.ale_open_list = 1
vim.g.ale_disable_lsp = 1
-- Setup lspconfig.
local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities())
capabilities.textDocument.foldingRange = {
dynamicRegistration = false,
lineFoldingOnly = true
}
--
-- Telescope
--
require('telescope').setup {
extensions = {
["ui-select"] = {
require("telescope.themes").get_dropdown {
}
}
}
}
require("telescope").load_extension("ui-select")
vim.api.nvim_set_keymap('n', '<leader>ff', "<cmd>lua require('telescope.builtin').find_files()<cr>",
{ noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<leader>fg', "<cmd>lua require('telescope.builtin').live_grep()<cr>",
{ noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<leader>fb', "<cmd>lua require('telescope.builtin').buffers()<cr>",
{ noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<leader>fh', "<cmd>lua require('telescope.builtin').help_tags()<cr>",
{ noremap = true, silent = true })
--
-- Vista
--
vim.g.vista_default_executive = 'nvim_lsp'
--
-- Vdebug
--
vim.g.vdebug_options = { port = '9000' }
--
-- sonokai
--
vim.g.sonokai_style = "shusia"