mirror of
https://github.com/macocianradu/setup.git
synced 2026-07-16 10:38:46 +00:00
Compare commits
3 Commits
odoo
...
ec08eedea9
| Author | SHA1 | Date | |
|---|---|---|---|
| ec08eedea9 | |||
| 9abd126c37 | |||
| 39bcb18f3e |
@@ -4,18 +4,37 @@ capabilities.textDocument.completion.completionItem.snippetSupport = true
|
|||||||
vim.lsp.config("*", {
|
vim.lsp.config("*", {
|
||||||
capabilities = capabilities
|
capabilities = capabilities
|
||||||
})
|
})
|
||||||
-- vim.lsp.config("ts_ls", {})
|
|
||||||
|
local project_library_path = vim.fn.getcwd() .. '/node_modules'
|
||||||
|
local angular_cmd = {
|
||||||
|
'ngserver',
|
||||||
|
'--stdio',
|
||||||
|
'--tsProbeLocations',
|
||||||
|
project_library_path,
|
||||||
|
'--ngProbeLocations',
|
||||||
|
project_library_path .. '@angular/language-server'
|
||||||
|
}
|
||||||
|
|
||||||
|
vim.lsp.config("ts_ls", {})
|
||||||
|
vim.lsp.config("angularls", {
|
||||||
|
cmd = angular_cmd,
|
||||||
|
on_new_config = function(new_config, new_root_dir)
|
||||||
|
new_config.cmd = angular_cmd
|
||||||
|
end
|
||||||
|
})
|
||||||
vim.lsp.config("ruff", {})
|
vim.lsp.config("ruff", {})
|
||||||
vim.lsp.config("cssls", {})
|
vim.lsp.config("cssls", {})
|
||||||
vim.lsp.config("lua_ls", {})
|
vim.lsp.config("lua_ls", {})
|
||||||
vim.lsp.config("hls", {})
|
vim.lsp.config("hls", {})
|
||||||
vim.lsp.config("roslyn", {})
|
|
||||||
vim.lsp.config("odoo_ls", {
|
vim.lsp.config("odoo_ls", {
|
||||||
cmd = {
|
cmd = {
|
||||||
vim.fn.expand('$HOME/.local/share/nvim/odoo/odoo_ls_server'),
|
vim.fn.expand('$HOME/.local/share/nvim/odoo/odoo_ls_server'),
|
||||||
'--config-path', vim.fn.expand('$HOME/projects/odoo/odools.toml'),
|
'--config-path', vim.fn.expand('$HOME/projects/odoo/odools.toml'),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
vim.lsp.config("qmlls", {
|
||||||
|
cmd = { "qmlls6", "-E" }
|
||||||
|
})
|
||||||
vim.lsp.config("lemminx", {})
|
vim.lsp.config("lemminx", {})
|
||||||
vim.lsp.config("eslint", {
|
vim.lsp.config("eslint", {
|
||||||
cmd = { "vscode-eslint-language-server", "--stdio" },
|
cmd = { "vscode-eslint-language-server", "--stdio" },
|
||||||
@@ -30,7 +49,7 @@ vim.lsp.config("eslint", {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.lsp.enable({"odoo_ls", "hls", "ruff", "eslint", "cssls", "lua_ls", "lemminx"})
|
vim.lsp.enable({ "angularls", "odoo_ls", "hls", "ruff", "eslint", "cssls", "lua_ls", "lemminx", "qmlls" })
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd('LspAttach', {
|
vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
group = vim.api.nvim_create_augroup('user_lsp_attach', { clear = true }),
|
group = vim.api.nvim_create_augroup('user_lsp_attach', { clear = true }),
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
require 'nvim-treesitter.configs'.setup {
|
local ts = require('nvim-treesitter')
|
||||||
-- A list of parser names, or "all" (the listed parsers MUST always be installed)
|
|
||||||
ensure_installed = {
|
ts.setup{}
|
||||||
|
|
||||||
|
ts.install({
|
||||||
"vimdoc",
|
"vimdoc",
|
||||||
"javascript",
|
"javascript",
|
||||||
"typescript",
|
"typescript",
|
||||||
@@ -12,40 +14,29 @@ require 'nvim-treesitter.configs'.setup {
|
|||||||
"query",
|
"query",
|
||||||
"markdown",
|
"markdown",
|
||||||
"markdown_inline",
|
"markdown_inline",
|
||||||
"yaml"
|
"yaml",
|
||||||
},
|
"haskell"
|
||||||
|
})
|
||||||
|
|
||||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
sync_install = false,
|
callback = function(ev)
|
||||||
|
local lang = vim.treesitter.language.get_lang(ev.match)
|
||||||
|
local available_langs = ts.get_available()
|
||||||
|
local is_available = vim.tbl_contains(available_langs, lang)
|
||||||
|
if is_available then
|
||||||
|
local installed_langs = ts.get_installed()
|
||||||
|
local installed = vim.tbl_contains(installed_langs, lang)
|
||||||
|
if not installed then
|
||||||
|
ts.install(lang):await()
|
||||||
|
end
|
||||||
|
vim.treesitter.start()
|
||||||
|
ts.indentexpr()
|
||||||
|
end
|
||||||
|
vim.wo[0][0].foldexpr = 'v:lua.vim.treesitter.foldexpr()'
|
||||||
|
vim.wo[0][0].foldmethod = 'expr'
|
||||||
|
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- Automatically install missing parsers when entering buffer
|
vim.o.foldlevel = 99
|
||||||
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
vim.o.foldlevelstart = 99
|
||||||
auto_install = true,
|
|
||||||
|
|
||||||
---- If you need to change the installation directory of the parsers (see -> Advanced Setup)
|
|
||||||
-- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")!
|
|
||||||
|
|
||||||
highlight = {
|
|
||||||
enable = true,
|
|
||||||
|
|
||||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
|
||||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
|
||||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
|
||||||
-- Instead of true it can also be a list of languages
|
|
||||||
additional_vim_regex_highlighting = false,
|
|
||||||
},
|
|
||||||
|
|
||||||
indent = {
|
|
||||||
enable = true,
|
|
||||||
disable = { "xml", "python" },
|
|
||||||
},
|
|
||||||
|
|
||||||
fold = {
|
|
||||||
enable = true,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
vim.o.foldmethod = "expr"
|
|
||||||
vim.o.foldexpr = "nvim_treesitter#foldexpr()"
|
|
||||||
vim.opt.foldlevel = 99
|
|
||||||
vim.opt.foldlevelstart = 99
|
|
||||||
|
|||||||
@@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"LuaSnip": { "branch": "master", "commit": "a62e1083a3cfe8b6b206e7d3d33a51091df25357" },
|
||||||
|
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
|
||||||
|
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
|
||||||
|
"codecompanion-history.nvim": { "branch": "main", "commit": "bc1b4fe06eaaf0aa2399be742e843c22f7f1652a" },
|
||||||
|
"codecompanion.nvim": { "branch": "main", "commit": "558518f8d78a44198cd428f6bf8bf48bfa38d76d" },
|
||||||
|
"dashboard-nvim": { "branch": "master", "commit": "62a10d9d55132b338dd742afc3c8a2683f3dd426" },
|
||||||
|
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
|
||||||
|
"everforest-nvim": { "branch": "main", "commit": "cf08aa67fc96946a01177ae483b7631733b4b5e6" },
|
||||||
|
"gitlinker.nvim": { "branch": "master", "commit": "d7adb5e4ba5bab4fd443a3f4c46af3f4c864685d" },
|
||||||
|
"gitsigns.nvim": { "branch": "main", "commit": "8d82c240f190fc33723d48c308ccc1ed8baad69d" },
|
||||||
|
"harpoon": { "branch": "harpoon2", "commit": "87b1a3506211538f460786c23f98ec63ad9af4e5" },
|
||||||
|
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
||||||
|
"lualine.nvim": { "branch": "master", "commit": "8811f3f3f4dc09d740c67e9ce399e7a541e2e5b2" },
|
||||||
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "63a3c6a80538de1003373a619e29aeda27809ad3" },
|
||||||
|
"mason.nvim": { "branch": "main", "commit": "b03fb0f20bc1d43daf558cda981a2be22e73ac42" },
|
||||||
|
"mini.icons": { "branch": "main", "commit": "7fdae2443a0e2910015ca39ad74b50524ee682d3" },
|
||||||
|
"neogit": { "branch": "master", "commit": "e06745228600a585b88726fc9fba44a373c15a47" },
|
||||||
|
"nord.nvim": { "branch": "master", "commit": "80c1e5321505aeb22b7a9f23eb82f1e193c12470" },
|
||||||
|
"nvim-cmp": { "branch": "main", "commit": "a1d504892f2bc56c2e79b65c6faded2fd21f3eca" },
|
||||||
|
"nvim-dap": { "branch": "master", "commit": "45a69eba683a2c448dd9ecfc4de89511f0646b5f" },
|
||||||
|
"nvim-dap-python": { "branch": "master", "commit": "1808458eba2b18f178f990e01376941a42c7f93b" },
|
||||||
|
"nvim-dap-ui": { "branch": "master", "commit": "1a66cabaa4a4da0be107d5eda6d57242f0fe7e49" },
|
||||||
|
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||||
|
"nvim-scrollbar": { "branch": "main", "commit": "f8e87b96cd6362ef8579be456afee3b38fd7e2a8" },
|
||||||
|
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
|
||||||
|
"nvim-web-devicons": { "branch": "master", "commit": "95b7a002d5dba1a42eb58f5fac5c565a485eefd0" },
|
||||||
|
"odoo-neovim": { "branch": "main", "commit": "6ea306ebcdfa1ee13524c05757f5e739cb2e8001" },
|
||||||
|
"oil.nvim": { "branch": "master", "commit": "0fcc83805ad11cf714a949c98c605ed717e0b83e" },
|
||||||
|
"persistence.nvim": { "branch": "main", "commit": "b20b2a7887bd39c1a356980b45e03250f3dce49c" },
|
||||||
|
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||||
|
"render-markdown.nvim": { "branch": "main", "commit": "54d4b5431e9634ee3d8d30784e017239b5b89d41" },
|
||||||
|
"smear-cursor.nvim": { "branch": "main", "commit": "c85bdbb25db096fbcf616bc4e1357bd61fe2c199" },
|
||||||
|
"snacks.nvim": { "branch": "main", "commit": "ad9ede6a9cddf16cedbd31b8932d6dcdee9b716e" },
|
||||||
|
"strudel.nvim": { "branch": "main", "commit": "a6b9752b0084a20c37786b54eef2095bb31daff7" },
|
||||||
|
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
||||||
|
"telescope.nvim": { "branch": "master", "commit": "7ef4d6dccb78ee71e552bbd866176762ad328afa" },
|
||||||
|
"tidal.nvim": { "branch": "develop", "commit": "bcc9679a1932cfa2f75a38ddf3af18ed344da1fe" },
|
||||||
|
"undotree": { "branch": "master", "commit": "6fa6b57cda8459e1e4b2ca34df702f55242f4e4d" },
|
||||||
|
"vim-projectionist": { "branch": "master", "commit": "5ff7bf79a6ef741036d2038a226bcb5f8b1cd296" },
|
||||||
|
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" }
|
||||||
|
}
|
||||||
@@ -5,7 +5,7 @@ local M = {}
|
|||||||
-- Adapter (netcoredbg)
|
-- Adapter (netcoredbg)
|
||||||
dap.adapters.coreclr = {
|
dap.adapters.coreclr = {
|
||||||
type = "executable",
|
type = "executable",
|
||||||
command = "/Users/radumaco/Projects/netcoredbg/build/src/netcoredbg",
|
command = "/home/radu/.local/share/nvim/mason/bin/netcoredbg",
|
||||||
args = { "--interpreter=vscode" },
|
args = { "--interpreter=vscode" },
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -200,6 +200,7 @@ local function debug_dotnet_from_sln()
|
|||||||
env = {
|
env = {
|
||||||
ASPNETCORE_ENVIRONMENT = "Development",
|
ASPNETCORE_ENVIRONMENT = "Development",
|
||||||
DOTNET_ENVIRONMENT = "Development",
|
DOTNET_ENVIRONMENT = "Development",
|
||||||
|
ASPNETCORE_URLS = "https://localhost:7045;http://localhost:5000",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -61,7 +61,11 @@ require("lazy").setup({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
'odoo/odoo-neovim',
|
'odoo/odoo-neovim',
|
||||||
|
{
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
lazy = false,
|
||||||
|
build = ':TSUpdate'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'theprimeagen/harpoon',
|
'theprimeagen/harpoon',
|
||||||
branch = 'harpoon2',
|
branch = 'harpoon2',
|
||||||
@@ -76,7 +80,11 @@ require("lazy").setup({
|
|||||||
{
|
{
|
||||||
"olimorris/codecompanion.nvim",
|
"olimorris/codecompanion.nvim",
|
||||||
version = "^18.0.0",
|
version = "^18.0.0",
|
||||||
opts = {},
|
opts = {
|
||||||
|
opts = {
|
||||||
|
log_level = "TRACE",
|
||||||
|
},
|
||||||
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
@@ -155,6 +163,7 @@ require("lazy").setup({
|
|||||||
},
|
},
|
||||||
'hrsh7th/cmp-buffer',
|
'hrsh7th/cmp-buffer',
|
||||||
'hrsh7th/nvim-cmp',
|
'hrsh7th/nvim-cmp',
|
||||||
|
'seblyng/roslyn.nvim',
|
||||||
'L3MON4D3/LuaSnip',
|
'L3MON4D3/LuaSnip',
|
||||||
{
|
{
|
||||||
'mfussenegger/nvim-dap-python',
|
'mfussenegger/nvim-dap-python',
|
||||||
|
|||||||
Reference in New Issue
Block a user