misc settings

This commit is contained in:
Johannes Knopp
2025-01-13 22:19:32 +01:00
parent 862c6964bb
commit 5048949d2a
6 changed files with 65 additions and 28 deletions

View File

@ -0,0 +1,9 @@
return {
'nvim-flutter/flutter-tools.nvim',
lazy = false,
dependencies = {
'nvim-lua/plenary.nvim',
'stevearc/dressing.nvim', -- optional for vim.ui.select
},
config = true,
}

View File

@ -81,36 +81,43 @@ return {
['ts_ls'] = function()
lspconfig['ts_ls'].setup({
capabilities = capabilities,
})
end,
['pyright'] = function()
lspconfig['pyright'].setup({
cmd = { "pyright-langserver", "--stdio" },
filetypes = { "python" },
-- root_dir = function(filename)
-- return util.root_pattern(unpack(root_files))(filename) or util.path.dirname(filename)
-- end,
settings = {
python = {
analysis = {
autoSearchPaths = true,
diagnosticMode = "workspace",
useLibraryCodeForTypes = true
}
-- cmd = { "typescript-language-server", "--stdio" },
init_options = {
hostInfo = "neovim",
prferences = {
includePackagesJsonAutoImports = "on",
}
}
-- capabilities = capabilities,
-- settings = {
-- python = {
-- analysis = {
-- useLibraryCodeForTypes = true,
-- typeCheckingMode = "basic",
-- -- configPath = vim.fn.expand('./pyrightconfig.json')
-- }
-- }
-- },
})
end,
-- ['pyright'] = function()
-- lspconfig['pyright'].setup({
-- -- cmd = { "pyright-langserver", "--stdio" },
-- -- filetypes = { "python" },
-- -- root_dir = function(filename)
-- -- return util.root_pattern(unpack(root_files))(filename) or util.path.dirname(filename)
-- -- end,
-- -- settings = {
-- -- python = {
-- -- analysis = {
-- -- autoSearchPaths = true,
-- -- diagnosticMode = "workspace",
-- -- useLibraryCodeForTypes = true
-- -- }
-- -- }
-- -- }
-- capabilities = capabilities,
-- settings = {
-- python = {
-- analysis = {
-- useLibraryCodeForTypes = true,
-- typeCheckingMode = "basic",
-- -- configPath = vim.fn.expand('./pyrightconfig.json')
-- }
-- }
-- },
-- })
-- end,
})
end
}

View File

@ -1,5 +1,22 @@
return {
'folke/todo-comments.nvim',
dependencies = { 'nvim-lua/plenary.nvim' },
opts = {},
lazy = false,
config = function()
require("todo-comments").setup({
-- keywords = {
-- TODO = { icon = " ", color = "custom" },
-- },
-- colors = {
-- custom = { fg = "#FF0000", bg = "#000000" },
-- },
highlight = {
pattern = [[.*<(KEYWORDS)\s*]],
},
search = {
pattern = [[\b(KEYWORDS)\b]],
}
})
end
}