From e62e449da70d72cfe92adc0f0efc947c04633555 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Fri, 7 Oct 2022 04:02:07 +0900 Subject: [PATCH 1/3] add: fish: config.fish to resolve julia driver problem --- dotfiles/fish/config.fish | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dotfiles/fish/config.fish b/dotfiles/fish/config.fish index 428fa5c..cfbf773 100644 --- a/dotfiles/fish/config.fish +++ b/dotfiles/fish/config.fish @@ -7,3 +7,8 @@ end # opam configuration source /home/qwjyh/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true + +# julia +# to solve Graphic Card driver problem +export LD_PRELOAD=/usr/lib64/libstdc++.so.6 + From e1138795c022e5c602b1cbd5d39630db87c4fe68 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Fri, 7 Oct 2022 04:03:34 +0900 Subject: [PATCH 2/3] add: install.sh symlinks --- bin/install.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 bin/install.sh diff --git a/bin/install.sh b/bin/install.sh new file mode 100644 index 0000000..55f001e --- /dev/null +++ b/bin/install.sh @@ -0,0 +1,13 @@ +#!/usr/bin/fish + +# test working directory + + +# symlink +#ln -s ~/.config/fish/config.fish dotfiles/fish/config.fish +cp ~/.config/fish/config.fish (pwd)/dotfiles/fish/config.fish +ln -s (pwd)/dotfiles/fish/config.fish ~/.config/fish/config.fish +ln -s (pwd)/dotfiles/starship/starship.toml ~/.config/starship.toml +ln -sf (pwd)/dotfiles/neovim/init.lua ~/.config/nvim/init.lua +ln -sf (pwd)/dotfiles/neovim/lua/plugins.lua ~/.config/nvim/lua/plugins.lua + From c7d7b4204eab8a020bba2bd849959e4817001e0e Mon Sep 17 00:00:00 2001 From: qwjyh Date: Fri, 7 Oct 2022 04:03:59 +0900 Subject: [PATCH 3/3] (WIP) add nvim satysfi configs (need more config for lsp-config) --- dotfiles/neovim/init.lua | 7 +++++++ .../server_configuration/satysfi-ls.lua | 20 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 dotfiles/neovim/lua/lspconfig/server_configuration/satysfi-ls.lua diff --git a/dotfiles/neovim/init.lua b/dotfiles/neovim/init.lua index d7bdd8e..7097cb2 100644 --- a/dotfiles/neovim/init.lua +++ b/dotfiles/neovim/init.lua @@ -138,3 +138,10 @@ cmp.setup({ vim.api.nvim_set_keymap('n', '', "lua require('fzf-lua').files()", { noremap = true, silent = true }) + + +----------------------------------------------------------- +-- satysfi language server +require('lspconfig')['satysfi-ls'].setup{ + autostart = true +} diff --git a/dotfiles/neovim/lua/lspconfig/server_configuration/satysfi-ls.lua b/dotfiles/neovim/lua/lspconfig/server_configuration/satysfi-ls.lua new file mode 100644 index 0000000..78e30f7 --- /dev/null +++ b/dotfiles/neovim/lua/lspconfig/server_configuration/satysfi-ls.lua @@ -0,0 +1,20 @@ +# https://zenn.dev/monaqa/articles/2021-12-10-satysfi-language-server +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'satysfi-language-server' }, + filetypes = { 'satysfi' }, + root_dir = util.root_pattern('.git'), + single_file_support = true, + }, + docs = { + description = [[ + https://github.com/monaqa/satysfi-language-server + Language server for SATySFi. + ]], + default_config = { + root_dir = [[root_pattern(".git")]], + }, + }, +}