Browse Source

fix: dartls in lspconfig.lua

master
Tovi Jaeschke-Rogers 6 months ago
parent
commit
7204a5c739
2 changed files with 17 additions and 10 deletions
  1. +6
    -9
      .config/nvim/lua/tovi/plugins/lspconfig.lua
  2. +11
    -1
      .zshrc

+ 6
- 9
.config/nvim/lua/tovi/plugins/lspconfig.lua View File

@ -252,14 +252,11 @@ return {
run_on_start = false,
})
require("mason-lspconfig").setup({
handlers = {
function(server_name)
local server = servers[server_name] or {}
server.capabilities = vim.tbl_deep_extend("force", {}, capabilities, server.capabilities or {})
require("lspconfig")[server_name].setup(server)
end,
},
})
require("mason-lspconfig").setup()
for server_name, server in pairs(servers) do
server.capabilities = vim.tbl_deep_extend("force", {}, capabilities, server.capabilities or {})
require("lspconfig")[server_name].setup(server)
end
end,
}

+ 11
- 1
.zshrc View File

@ -21,7 +21,17 @@ export EDITOR=nvim
export GIT_EDITOR=nvim
export PATH="${HOME}/.local/bin/:${HOME}/go/bin:${HOME}/.cargo/bin:${PATH}"
PROMPT="%{$fg[blue]%}%1~ %{$fg[green]%}>%{$reset_color%} "
# Enable substitution in the prompt.
setopt prompt_subst
function git_branch_name() {
branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}')
if [[ $branch != "" ]]; then
echo "- ${branch} "
fi
}
PROMPT='%{$fg[blue]%}%1~ %{$fg[magenta]%}$(git_branch_name)%{$fg[green]%}>%{$reset_color%} '
# Set some options if running on mac
if [[ $(uname) == 'Darwin' ]]; then


Loading…
Cancel
Save