many changes

This commit is contained in:
Marco 2024-10-01 12:06:34 +02:00
parent 900b2d0b24
commit dcbe6a8f9b
12 changed files with 56 additions and 6 deletions

View File

@ -1,7 +1,7 @@
local dap = require('dap')
dap.adapters.lldb = {
type = 'executable',
command = '/usr/bin/lldb-vscode',
command = '/usr/bin/lldb-dap',
name = 'lldb'
}

View File

@ -0,0 +1,19 @@
local dap = require('dap')
dap.adapters.dart = {
type = 'executable',
command = 'flutter',
args = { "debug_adapter" }
}
dap.configurations.dart = {
{
type = "dart",
request = "launch",
name = "Launch Flutter Program",
-- The nvim-dap plugin populates this variable with the filename of the current buffer
program = "${file}",
-- The nvim-dap plugin populates this variable with the editor's current working directory
cwd = "${workspaceFolder}",
toolArgs = { "test", "-d", "linux" },
}
}

View File

@ -0,0 +1,10 @@
local pwd = vim.loop.cwd()
local cmd = { "ngserver", "--stdio", "--tsProbeLocations", pwd .. "/node_modules", "--ngProbeLocations",
pwd .. "/node_modules" }
require 'lspconfig'.angularls.setup {
cmd = cmd,
on_new_config = function(new_config, new_root_dir)
new_config.cmd = cmd
end,
}

View File

@ -15,4 +15,9 @@ require('flutter-tools').setup {
}
end,
},
lsp = {
settings = {
analysisExcludedFolders = {},
},
},
}

View File

@ -0,0 +1 @@
require 'lspconfig'.hls.setup {}

View File

@ -1 +1 @@
require'lspconfig'.pylsp.setup{}
require 'lspconfig'.pyright.setup {}

View File

@ -1 +1 @@
require('lspconfig').tsserver.setup {}
--require('lspconfig').tsserver.setup {}

View File

@ -2,6 +2,8 @@ require 'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" (the five listed parsers should always be installed)
ensure_installed = { "go", "rust", "toml", "c", "lua", "vim", "vimdoc", "query" },
modules = {},
-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,
@ -9,6 +11,8 @@ require 'nvim-treesitter.configs'.setup {
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
auto_install = true,
ignore_install = {},
highlight = {
enable = true,

View File

@ -3,3 +3,4 @@ require("myworkflow.set")
require("myworkflow.packer")
require("myworkflow.autocommands")
require("myworkflow.go-tests")
require("myworkflow.ui")

View File

@ -2,6 +2,9 @@
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
-- Packer can manage itself
use 'wbthomason/packer.nvim'
-- Telescope
use { 'nvim-telescope/telescope.nvim',
requires = { { 'nvim-lua/plenary.nvim' } }
@ -15,9 +18,6 @@ return require('packer').startup(function(use)
-- fugitive
use 'tpope/vim-fugitive'
-- Packer can manage itself
use 'wbthomason/packer.nvim'
-- undotree
use 'mbbill/undotree'
@ -71,4 +71,7 @@ return require('packer').startup(function(use)
-- VimTex
use 'lervag/vimtex'
--- highlight indendation with lines
use 'lukas-reineke/indent-blankline.nvim'
end)

1
lua/myworkflow/ui.lua Normal file
View File

@ -0,0 +1 @@
require("ibl").setup()

6
package-lock.json generated Normal file
View File

@ -0,0 +1,6 @@
{
"name": "nvim",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}