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,24 +81,31 @@ return {
['ts_ls'] = function() ['ts_ls'] = function()
lspconfig['ts_ls'].setup({ lspconfig['ts_ls'].setup({
capabilities = capabilities, capabilities = capabilities,
-- cmd = { "typescript-language-server", "--stdio" },
init_options = {
hostInfo = "neovim",
prferences = {
includePackagesJsonAutoImports = "on",
}
}
}) })
end, end,
['pyright'] = function() -- ['pyright'] = function()
lspconfig['pyright'].setup({ -- lspconfig['pyright'].setup({
cmd = { "pyright-langserver", "--stdio" }, -- -- cmd = { "pyright-langserver", "--stdio" },
filetypes = { "python" }, -- -- filetypes = { "python" },
-- root_dir = function(filename) -- -- root_dir = function(filename)
-- return util.root_pattern(unpack(root_files))(filename) or util.path.dirname(filename) -- -- return util.root_pattern(unpack(root_files))(filename) or util.path.dirname(filename)
-- end, -- -- end,
settings = { -- -- settings = {
python = { -- -- python = {
analysis = { -- -- analysis = {
autoSearchPaths = true, -- -- autoSearchPaths = true,
diagnosticMode = "workspace", -- -- diagnosticMode = "workspace",
useLibraryCodeForTypes = true -- -- useLibraryCodeForTypes = true
} -- -- }
} -- -- }
} -- -- }
-- capabilities = capabilities, -- capabilities = capabilities,
-- settings = { -- settings = {
-- python = { -- python = {
@ -109,8 +116,8 @@ return {
-- } -- }
-- } -- }
-- }, -- },
}) -- })
end, -- end,
}) })
end end
} }

View File

@ -1,5 +1,22 @@
return { return {
'folke/todo-comments.nvim', 'folke/todo-comments.nvim',
dependencies = { 'nvim-lua/plenary.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
} }

View File

@ -104,9 +104,10 @@ fi
# alias ohmyzsh="mate ~/.oh-my-zsh" # alias ohmyzsh="mate ~/.oh-my-zsh"
bindkey '^R' history-incremental-search-backward bindkey '^R' history-incremental-search-backward
# TODO source all files with .zsh suffix
source ~/dotfiles/zsh/aliases.zsh source ~/dotfiles/zsh/aliases.zsh
source ~/dotfiles/zsh/dev_env.zsh source ~/dotfiles/zsh/dev_env.zsh
source ~/dotfiles/zsh/tools.zsh

View File

@ -2,3 +2,5 @@ alias vim='nvim'
alias tp='trash-put' alias tp='trash-put'
alias tl='trash-list' alias tl='trash-list'
alias zrc='source ~/.zshrc'

1
zsh/tools.zsh Normal file
View File

@ -0,0 +1 @@
source /usr/share/autojump/autojump.zsh