-
Notifications
You must be signed in to change notification settings - Fork 462
Issues
This page is not frequently updated, so please also check issues opened and closed to find answer.
To make sqlite work with lua, manually grab the dlls from sqlite.org/download.html and replace vim.g.sqlite_clib_path
with your path at the bottom of lua/core/options.lua
. Please make you are downloading the same version of dlls as the version of sqlite/sqlite3
on your windows machine.
Please refer to the FAQ and add win32yank.exe
to your path.
Please check this file to make sure your directory can be detected as a working directory.
For example (gopls):
Your root directory need a go.mod
and your .go
file need to be created
first. Then LSP will autostart when you edit .go
file next time.
Set settings["format_on_save"] = false
in lua/core/settings.lua
Make sure your github account is signed up for copilot.
Then use Copilot auth
command to setup.
I just copy friendly-snippets
's package.json
to snips
directory.
So you need add your snippets follow these steps:
- Check the language's snippet file place defined in
package.json
.
- So create
snippets/go.json
and fill content like this:
touch snippets/go.json
- Finally, check the new snippets!
You need to use the latest LTS version (such as v16.13.2
) to make sure LSP
installed from npm
works normally.
Relevant debug info is located in ~/.cache/nvim/lsp.log
.
You can use tail ~/.cache/nvim/lsp.log
to check latest error info.
- Prepare your original image.
- Use ascii-image-converter convert it to ascii image.
- Replace content of
dashboard.section.header.val
defined inlua/modules/configs/ui/alpha.lua
with your ascii image. - Resatrt
nvim
.
Make sure first use g++
or clang++
with -g
flag to get executable a.out
file.
rm -rf ~/.config/nvim
rm -rf ~/.local/share/nvim
Make sure to have the following tool available in $PATH
- clang++
- clang
- gcc
- g++
For MacOS users, this can often be achieved by installing LLVM (it comes with the whole suite):
brew install llvm
If you are using nix-darwin, then add pkgs.llvm
to environment.systemPackages
:
Example darwin-configuration.nix
{ config, pkgs, lib, ... }:
let
inherit (pkgs) callPackage fetchFromGitHub;
inherit (builtins) fetchTarball;
homeDir = builtins.getEnv "HOME";
in
{
# auto gc
nix = {
gc = {
automatic = true;
options = "--max-freed $((25 * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | awk '{ print $4 }')))";
};
package = pkgs.nixUnstable;
# enable flake and experimental command
extraOptions = ''
auto-optimise-store = true
experimental-features = nix-command flakes
keep-outputs = true
keep-derivations = true
trusted-users = root ${username}
'' + lib.optionalString (pkgs.system == "aarch64-darwin") ''
extra-platforms = x86_64-darwin aarch64-darwin
'';
};
environment = {
systemPackages = with pkgs; [
llvmPackages
];
# add shell installed by nix to /etc/shells
shells = with pkgs; [
zsh
];
# Setup environment variables to pass to zshrc
variables = {
PATH = "${pkgs.llvmPackages.out}/bin:$PATH";
};
};
services = {
# Auto upgrade nix package and the daemon service.
nix-daemon.enable = true;
};
}