misc settings
This commit is contained in:
9
nvim/lua/config/plugins/flutter.lua
Normal file
9
nvim/lua/config/plugins/flutter.lua
Normal 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,
|
||||
}
|
||||
@ -81,24 +81,31 @@ return {
|
||||
['ts_ls'] = function()
|
||||
lspconfig['ts_ls'].setup({
|
||||
capabilities = capabilities,
|
||||
-- cmd = { "typescript-language-server", "--stdio" },
|
||||
init_options = {
|
||||
hostInfo = "neovim",
|
||||
prferences = {
|
||||
includePackagesJsonAutoImports = "on",
|
||||
}
|
||||
}
|
||||
})
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
-- ['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 = {
|
||||
@ -109,8 +116,8 @@ return {
|
||||
-- }
|
||||
-- }
|
||||
-- },
|
||||
})
|
||||
end,
|
||||
-- })
|
||||
-- end,
|
||||
})
|
||||
end
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
@ -104,9 +104,10 @@ fi
|
||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||
bindkey '^R' history-incremental-search-backward
|
||||
|
||||
|
||||
# TODO source all files with .zsh suffix
|
||||
source ~/dotfiles/zsh/aliases.zsh
|
||||
source ~/dotfiles/zsh/dev_env.zsh
|
||||
source ~/dotfiles/zsh/tools.zsh
|
||||
|
||||
|
||||
|
||||
|
||||
@ -2,3 +2,5 @@ alias vim='nvim'
|
||||
|
||||
alias tp='trash-put'
|
||||
alias tl='trash-list'
|
||||
|
||||
alias zrc='source ~/.zshrc'
|
||||
|
||||
1
zsh/tools.zsh
Normal file
1
zsh/tools.zsh
Normal file
@ -0,0 +1 @@
|
||||
source /usr/share/autojump/autojump.zsh
|
||||
Reference in New Issue
Block a user